What does float mean?

A real number with a fractional part, such as 3.5 or -0.25. Python calls the type float; exam papers say real.

Also written as: floats, real number, floating point

In a lesson

20 / 5 printed 4.0, not 4: / always gives a float, even when the answer is whole. // gives an integer. round tidies a long float: the second argument is how many decimal places to keep.

Learn it

Used in

and 28 more lessons.

Do the lesson in the simulator

All glossary terms