Loading

RINT

math

The RINT function consumes a numeric parameter from the top of the stack and pushes back the DOUBLE the closest to the parameter and equal to a mathematical integer.

Since 2.6.0, this function can be applied to a list of numeric values.

RINT is available since version 1.0.0.

Signature

Examples

41.5 RINT 42.4999 RINT -41.5001 RINT -42.5 RINT DUP TYPEOF