The math
module implements a number of mathematical operations for
floating-point numbers. The functions are generally thin wrappers
around the platform C library functions of the same name, so results
may vary slightly across platforms in normal cases, or vary a lot in
exceptional cases. Example 1-60 demonstrates the use of the math
module.
See the Python Library Reference for a full list of functions.
Get Python Standard Library now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.