+ 1
What is double and how it differs from float
3 Respostas
+ 3
a float is "single precision" whereas a double is "double precision".
A double has 64 bits and can store signed numbers from 1 .7e–308 to 1.7e+308
A float has 32 bits and can store signed numbers from 3 .4e–038 to 3.4e+038
Hope it helps!
+ 1
Double and float are data types associated with large numbers that can also have decimals. Double holds twice the size of a float, at 8 bytes and 15 significant decimal digits
- 3
float is used for decimal values and boolean is used for same purpose but it gives accurate values