+ 1

What is double and how it differs from float

9th Oct 2016, 8:34 AM
Aniket kinhikar
Aniket kinhikar - avatar
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!
9th Oct 2016, 9:39 AM
Andrew Dunk
Andrew Dunk - avatar
+ 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
9th Oct 2016, 9:48 AM
Flo
- 3
float is used for decimal values and boolean is used for same purpose but it gives accurate values
9th Oct 2016, 9:50 AM
Syed Taha
Syed Taha - avatar