0

What is the difference between int and float?

19th Sep 2016, 2:12 AM
Wira SW
Wira SW - avatar
3 Answers
+ 2
int defines integers only float can define both integer as well as decimals
20th Sep 2016, 3:00 PM
Shyam Lal
Shyam Lal - avatar
+ 1
Integers doesn't represent numbers after decimal point as float does
21st Sep 2016, 4:23 PM
Neeharika Ajjarapu
Neeharika Ajjarapu - avatar
0
Shyam that's wrong! Float and Int are datatypes. Where Int (integer) is a whole number like 5 and float is a floating point number like 5.0
28th Nov 2016, 6:30 PM
Michael Frank
Michael Frank - avatar