Float | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Float

Can someome give me a simplified explanation of a float?

1st Jul 2019, 10:15 AM
Aru
1 Answer
+ 3
Your computer needs to store numbers, that have decimals, in a different way. Numbers without decimals (like 1, 2, 3 and so on) are int, numbers with decimals (like 1.3, 4.7, 7.2) are floats.
1st Jul 2019, 10:40 AM
HonFu
HonFu - avatar