Rounding
Builds on Floor functionIntegers
Definition
Let be unbounded above and below, with only finitely many elements in each bounded interval. An example is the set of integers. For let and . A rounding to is a map with for every . The standard roundings are:
- rounding down: ;
- rounding up: ;
- rounding toward zero: if and if ;
- rounding to nearest: is the element of closest to . When is exactly halfway, a tie rule decides, such as ties to even or ties away from zero.
Remarks
Example: for , rounding down is the floor function, rounding up is the ceiling function, and rounding to nearest with ties to even sends , and . Check for : , , and . Non-example: the map is not a rounding to , since . Each of the four standard roundings is monotone: implies . An arbitrary rounding need not be monotone, since it may choose for one point and for a larger point of the same gap. For floating-point numbers, is extended by the subnormal numbers and by to cover overflow.
Reading path
To understand this page from the ground up, read these 3 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Floor function concept
- Integers object
- Rounding definition
Further reading
About this page
| Tag | N6AFVYBY2Z |
|---|---|
| URI | m2://N6AFVYBY2Z |
| Kind | definition |
| Writing | W0 stub |
| MSC | 65G50, 65Y04 |
| Defines | Rounding |
| Uses | Floor function, Integers |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.