0

What's the difference between float and double?

11th Mar 2022, 5:24 PM
Kekusina
Kekusina - avatar
2 Respostas
+ 2
float is a 32 bit IEEE 754 single precision Floating Point Number1 bit for the sign, (8 bits for the exponent, and 23* for the value), i.e. float has 7 decimal digits of precision. double is a 64 bit IEEE 75 4 double precision Floating Point Number (1 bit for the sign, 11 bits for the exponent, and 52* bits for the value), i.e. double has 15 decimal digits of precision.
11th Mar 2022, 5:29 PM
Saeid Rasouli
Saeid Rasouli - avatar