We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

Numbers

These are created by numeric literals and returned as results by arithmetic operators and arithmetic built-in functions. Numeric objects are immutable; once created their value never changes. Python numbers are of course strongly related to mathematical numbers, but subject to the limitations of numerical representation in computers.

Python distinguishes between integers, floating point numbers, and complex numbers.

Integers are elements from the mathematical set of integers (positive and negative).

Floats are machine-level double precision floating point numbers.

Complex numbers are represented as pairs of machine-level double recision floating point numbers.