0
What's the difference between float and double?
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.
- 1
https://www.sololearn.com/discuss/660920/?ref=app
https://www.sololearn.com/discuss/1396950/?ref=app
https://www.sololearn.com/discuss/2424945/?ref=app
https://www.sololearn.com/discuss/2353799/?ref=app
https://www.sololearn.com/discuss/1770957/?ref=app
https://www.sololearn.com/discuss/2095544/?ref=app
https://www.sololearn.com/discuss/1771089/?ref=app
https://www.sololearn.com/discuss/1291/?ref=app
https://www.sololearn.com/discuss/2297688/?ref=app