Directed rounding

From Wikipedia, the free encyclopedia

Directed rounding refers to rounding a number in a certain direction - toward a certain number or limit. For example, the IEEE 754 floating point standard has 4 rounding modes, 3 of which are directed rounding:

  • Round inward (toward 0)
  • Round upward (toward +infinity)
  • Round downward (toward -infinity)

The IEEE floating point standard must round because the result of operations on floating point numbers are not always representable because of limitations in precision.