Python Math Module
Mathematical functions — sin, cos, sqrt, floor, ceil, and constants. This category documents 41 Python math module entries, and each page gives you the full syntax, the parameter list, the return value, and a runnable example. The entries include: math.ceil(), math.floor(), math.trunc(), math.fabs(), math.sqrt(), math.pow(), math.exp(), math.log(), math.log10(), math.log2(), math.sin(), math.cos(), math.tan(), math.asin(), math.acos(), math.atan(), math.atan2(), math.degrees(), math.radians(), math.pi, math.e, math.inf, math.nan, math.isclose(), math.isfinite(), math.isinf(), math.isnan(), math.comb(), math.perm(), math.factorial(), and more. math.ceil() returns the smallest integer greater than or equal to x. math.floor() returns the largest integer less than or equal to x. math.trunc() truncates the fractional part, returning the integer part. math.fabs() returns the absolute value of x as a float. math.sqrt() returns the square root of x.