0
Can someone explain Float to me better?
I'm new to programming, and not the greatest at math either. I understand things like Int, String, Bool etc. but it seems i cannot understand the purpose of Float function. Anybody have a good analogy or something?
3 Respostas
+ 6
Float and Double numbers with decimals
4.35357929
Int whole numbers
232
+ 2
Precision is the main difference between Float / Double / Decimal.
Float - 7 digits (32 bit)
Double-15-16 digits (64 bit)
Decimal -28-29 significant digits (128 bit)
Higher precision and are usually used within financial applications that require a high degree of accuracy
+ 1
Decimal -> long double?