0
Difference between float and double?
2 Respostas
+ 4
"float" takes up less space but is less precise.
"double" takes up more space but is more precise.
+ 2
according to IEEE754 float is 32 bits data type and double is 64 bits data date.
to store decimal numbers we have three part mantis to save normalized floating part,second part that save power of ten for first part and sign bit of mantis.
in double data type mantis bit are large and give us fraction precision up to 16 digits and power can grow up to 324.
float range +/-1.7E45..+/-3.4E38
double range +/-5E-324 .. 1.4E308