0

what is the difference between Float and Double?

18th Oct 2016, 9:25 AM
Baran
Baran - avatar
3 Respostas
+ 8
To addition to her answer @Lara I want to add that in c# there are 3 types of not integer. 1) float with precision of 7 digits (32-bit) 2) double with precision of 15-16 digits (64-bit) 3) decimal with precision of 28-29 digits (128-bit) However, decimals are much much slower than float/double
18th Oct 2016, 10:20 AM
Aaron Sarkissian
Aaron Sarkissian - avatar
+ 4
it is the same in C++, however in Java Float is 4 bytes and Double is 8 bytes
18th Oct 2016, 9:34 AM
Lara
Lara - avatar
0
float is of 4 bytes and double is of 8 bytes and one more important thing is float can display 7 values after decimal point(called precision 7) and double can display 16 values after decimal point
18th Oct 2016, 3:10 PM
siddesh
siddesh - avatar