math_rint

Rounds to the nearest integer using the runtime rounding rule.

Target function

Signature

1math_rint(value)

Rounds to the nearest integer using the runtime rounding rule.

math_rint is a global callable that can be used wherever an expression is valid. math_rint is part of numeric expression work. Be deliberate about integer versus decimal inputs because several math helpers preserve or infer the result type from their arguments.

Parameters

value
Required value. Supply value positionally unless the signature shows a keyword form.

Examples

Basic call

1math_rint(3.5)
The example keeps numeric inputs explicit so integer and decimal behavior remain visible.