Navigation
- index
- modules |
- next |
- previous |
- Python »
- 3.15.2 documentation »
- The Python standard library »
- Numeric and Mathematical Modules
- |
- Theme |
Numeric and Mathematical Modules¶
The modules described in this chapter provide numeric and math-related functions
and data types. The numbers module defines an abstract hierarchy of
numeric types. The math and cmath modules contain various
mathematical functions for floating-point and complex numbers. The decimal
module supports exact representations of decimal numbers, using arbitrary precision
arithmetic.
The following modules are documented in this chapter:
numbers— Numeric abstract base classesmath— Mathematical functionsmath.integer— integer-specific mathematics functionscmath— Mathematical functions for complex numbersdecimal— Decimal fixed-point and floating-point arithmeticfractions— Rational numbersrandom— Generate pseudo-random numbersstatistics— Mathematical statistics functions
Previous topic
graphlib — Functionality to operate with graph-like structures
Next topic
numbers — Numeric abstract base classes
This page
«Navigation
- index
- modules |
- next |
- previous |
- Python »
- 3.15.2 documentation »
- The Python standard library »
- Numeric and Mathematical Modules
- |
- Theme |
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.
The Python Software Foundation is a non-profit corporation. Please donate.
Last updated on Nov 29, 2026 (07:13 UTC). Found a bug?
Created using Sphinx 9.1.1.