0
Float or double no difference?
In order to express decimal numbers we should use double data type because they have more precision. So can we say that we should avoid float and use double/long double only for decimal numbers?
4 Réponses
+ 1
double store decimals and entire part in separate areas while float is converting the whole number in a power of two and.store it in the same area. In both case thoses numbers are limited in precision (for example due to decimal-to-binary conversion) so you have to use them carrefully in full knowledge of what you lose...
0
i think double take more memory than float so due to this for some code memory is unnecessaryily wasting
0
Double stores more zecimals.
0
yes double take more memory.