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.
last updated 2 years ago by effbot #
