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:
“People forget that it is the eye that makes the horizon, and the rounding minds eye which makes this or that man a type or representative of humanity with the name of hero or saint.”
—Ralph Waldo Emerson (18031882)
“One murder makes a villain, millions a hero. Numbers sanctify, my good fellow.”
—Charlie Chaplin (18891977)
Related Phrases
Related Words