Excuse me, can anyone explain me the term "float" briefly. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Excuse me, can anyone explain me the term "float" briefly.

Python

23rd Aug 2020, 5:18 AM
Manab Das
1 Answer
+ 2
Imagine a cake. If you cut it in half, you get two halves. This can be illustrated with float numbers. 1 = 0.5 + 0.5 If you cut one half in half again you will get 1 = 0.5 + 0.25 + 0.25 But if you had 2 pies and half of one is gone then you get: 2 - 0.5 = 1.5
23rd Aug 2020, 7:39 AM
JaScript
JaScript - avatar