+ 1
Difference between float or Double
what is the difference??
7 odpowiedzi
+ 6
difference between them is that Double has a higher precision of around 15 decimal digits, whereas Float has around 6.
+ 6
yes, double take more memory.
if you use float for double value, you will lose data.
+ 4
float is used up to six decimal points no. whereas double is used for more than six decimal points .
+ 1
so I assume that a double than takes more memory space than a float. To save same space you better use floats? is that correct?
What happens / goes wrong, if you use a float for a double or vice versa?
+ 1
Float uses 4 bytes whereas double uses 8 bytes of memory.
+ 1
i beleive, double for float only cause more memory. float for double will cause problem because if you think your values will be high than float precision you should use double(max cases it wontt happen) and we should be careful on these.
0
What he said