We've been making changes to how we organize and display our docs. Our work isn't done but we'd love your feedback.

math.roundhalfup()

Rounds to nearest, ties towards positive infinity (half up).

Return Value

If x is math.NAN, a NaN will be returned.
If x is integral, ±0, x itself is returned.
If x is math.POS_INFINITY or math.NEG_INFINITY, an infinity of the same sign is returned.
Otherwise, the rounded value of x is returned.

Format

FLOAT
math.roundhalfup(FLOAT x)