Main Content

Rounding Mode: Nearest

When you round toward nearest, the number is rounded to the nearest representable value. In the case of a tie, nearest rounding rounds to the closest representable number in the direction of positive infinity.

You can round to nearest using the nearest function.

Plot of output stored integer value vs input real-world value using nearest rounding.

See Also

|