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. numbers模块定义了数字类型的抽象层次结构。The math and cmath modules contain various mathematical functions for floating-point and complex numbers. mathcmath模块包含浮点数和复数的各种数学函数。The decimal module supports exact representations of decimal numbers, using arbitrary precision arithmetic.decimal模块支持使用任意精度算术精确表示十进制数。

The following modules are documented in this chapter:本章记录了以下模块: