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

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