What's the difference between double and float? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

What's the difference between double and float?

27th Apr 2016, 3:33 PM
Victor Domingos
Victor Domingos - avatar
5 Answers
+ 12
This is usually the case: Float - 32 bit (7 digits) Double - 64 bit (15-16 digits)
4th May 2016, 11:28 AM
Colin Hong
Colin Hong - avatar
+ 3
Float and double both are used to hold decimal values. The only difference is that float has a lesser storage capacity as compared to double.
26th Jun 2016, 1:31 PM
Stephen Nicholas Tauro
Stephen Nicholas Tauro - avatar
0
I thought that a float air maybe it was a floating point was a decimal
17th Jun 2016, 4:06 PM
Shadows United
Shadows United - avatar
0
or not air
17th Jun 2016, 4:06 PM
Shadows United
Shadows United - avatar
0
float for maximum 3 decmil like 2.345 and double for same or more 2.65665675
20th Jun 2016, 4:58 PM
Muhammad Khir
Muhammad Khir - avatar