+ 1

what is the exact difference between float and double?

24th Aug 2016, 6:45 AM
Suraj Pathak
Suraj Pathak - avatar
4 Answers
+ 3
float takes 4 bytes range:1.4e–45 to 3.4e+38 double takes 8 bytes range 5e–324 to 1.8e+308
24th Aug 2016, 1:06 PM
Tiger
Tiger - avatar
+ 2
float holds small decimal value with fraction, whereas double holds a large one. just like int holds small value and long holds a large one without fraction.
24th Aug 2016, 12:33 PM
Sayan Sen
Sayan Sen - avatar
0
thank you!!
24th Aug 2016, 2:00 PM
Suraj Pathak
Suraj Pathak - avatar
0
float takes 4 bytes range:1.4e–45 to 3.4e+38 whereas, double takes 8 bytes range 5e–324 to 1.8e+308
24th Aug 2016, 7:31 PM
RITESH OJHA
RITESH OJHA - avatar