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?

19th May 2017, 4:07 AM
Austin Rideout
Austin Rideout - avatar
3 Respostas
+ 6
Float and Double numbers with decimals 4.35357929 Int whole numbers 232
19th May 2017, 4:14 AM
Manual
Manual - avatar
+ 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
19th May 2017, 5:11 AM
Perasak
+ 1
Decimal -> long double?
19th May 2017, 5:17 AM
Manual
Manual - avatar