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:
“I look for the new Teacher that shall follow so far those shining laws that he shall see them come full circle; shall see their rounding complete grace; shall see the world to be the mirror of the soul; shall see the identity of the law of gravitation with purity of the heart; and shall show that the Ought, that Duty, is one thing with Science, with Beauty, and with Joy.”
—Ralph Waldo Emerson (18031882)
“Im not even thinking straight any more. Numbers buzz in my head like wasps.”
—Kurt Neumann (19061958)
Related Phrases
Related Words