Available in all subroutines.
Rounds to nearest, ties towards positive infinity (also known as half up).
math.NAN, a NaN will be returned.
x is integral, ±0,
x itself is returned.
Otherwise, the rounded value of
x is returned.
User contributed notes
We welcome comments that add use cases, ideas, tips, and caveats. All comments will be moderated before publication. To post support questions, visit our support center and we'll find you the help you need.