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 rounds to the closest representable number in the direction of positive infinity.

In the Fixed-Point Designer™ software, you can round to nearest using the nearest function. Rounding toward nearest is shown in the following figure.