+ 1
what is the exact difference between float and double?
4 Réponses
+ 3
float takes 4 bytes range:1.4e–45 to 3.4e+38
double takes 8 bytes range 5e–324 to 1.8e+308
+ 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.
0
thank you!!
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