Main Content

Rounding Mode: Round

The Round rounding mode rounds to the closest representable number. In the case of a tie, it rounds:

  • Positive numbers to the closest representable number in the direction of positive infinity.

  • Negative numbers to the closest representable number in the direction of negative infinity.

As a result:

  • A small negative bias is introduced for negative samples.

  • No bias is introduced for samples with evenly distributed positive and negative values.

  • A small positive bias is introduced for positive samples.

You can perform this type of rounding using the round function.

See Also

|