Can anyone provide a quick, simple explanation of floating point values and division? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can anyone provide a quick, simple explanation of floating point values and division?

7th Jun 2017, 3:55 PM
Carlos DV
Carlos DV - avatar
1 Answer
+ 2
When you were a kid you only work with integers (int), then a division like 5/2 was 2 with a remainder of 1. Now you work with numbers with a point (float), so you now divide 5/2 and get 2,5
7th Jun 2017, 7:30 PM
Andrés04_ve
Andrés04_ve - avatar