Rounding Floating-point Numbers
The IEEE standard has four different rounding modes; the first is the default; the others are called directed roundings.
- Round to Nearest – rounds to the nearest value; if the number falls midway it is rounded to the nearest value with an even (zero) least significant bit, which occurs 50% of the time (in IEEE 754-2008 this mode is called roundTiesToEven to distinguish it from another round-to-nearest mode)
- Round toward 0 – directed rounding towards zero
- Round toward +∞ – directed rounding towards positive infinity
- Round toward −∞ – directed rounding towards negative infinity.
Read more about this topic: IEEE 754-1985
Famous quotes containing the words rounding and/or numbers:
“The past absconds
With our fortunes just as we were rounding a major
Bend in the swollen river; not to see ahead
Becomes the only predicament when what
Might be sunken there is mentioned only
In crabbed allusions but will be back tomorrow.”
—John Ashbery (b. 1927)
“The land cannot be cleansed of the blood that is shed therein, but by the blood of him that shed it.”
—Bible: Hebrew Numbers 35:33.
Related Phrases
Related Words