Python Math & Stats
Math & Stats — Mathematics, statistics, random, decimal, fractions, time, colors. This group brings together the Math Module, Statistics Module, Random Module, Decimal Module, Fractions Module, Colorsys Module, Time Module categories of the Python standard library. 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. Representative APIs from this group include math.ceil(), math.floor(), math.trunc(), math.fabs(), math.sqrt(), math.pow(), math.exp(), math.log(). Each category page in this group lists its functions with syntax, parameters, return values, and runnable examples, so the group works as a map of a whole area of the standard library.