+ 3

What is the difference between float and double

13th Nov 2016, 5:52 PM
Harsh Agrawal
Harsh Agrawal - avatar
4 Respostas
+ 13
Float is a single precision (32 bit) floating point data type, while double is a double precision (64 bit) floating point data type (that's why maybe it is called double)
13th Nov 2016, 6:53 PM
Rebeka Asryan
Rebeka Asryan - avatar
+ 4
a double can hold a larger value than a float. A double is twice the size of float.
13th Nov 2016, 6:26 PM
Fayeed Pawaskar
Fayeed Pawaskar - avatar
+ 2
Float is stored on 4 bytes Double is stored on 8 bytes
14th Nov 2016, 11:42 PM
Maxime
Maxime - avatar
- 3
سلام
16th Nov 2016, 9:21 PM
mesomeh