Appendix F — The math Module

The math module contains mathematical functions.

Constants such as PI:

import math

math.pi
3.141592653589793

Floor or ceiling operations:

math.floor(6.2)
6
math.ceil(6.2)
7