Float Data Type

In Python, the float data type is a number with a decimal point.

Floats may be printed using scientific notation.

type(23.0) # float  
type(3.2 + 2.5) # float  
2.0 ** 300 # 2.037035976334486e+90  

Floats have limited precision. The final few decimal places after arithmetic can be unexpectedly wrong.

Floats have limited size.

2.0 ** 3000 # OverflowError: (1, 'Numerical result out of range')