Numbers/Rounding and estimating
Notice: Incomplete
Estimating[edit | edit source]
Rounding[edit | edit source]
There are two main types of rounding, directed rounding and rounding to the nearest integer.
Directed Rounding[edit | edit source]
Directed rounding is when one rounds all numbers in the same direction. There are four types, rounding up, rounding down, rounding towards zero and rounding away from zero.
Rounding Up[edit | edit source]
To round up, you round all numbers to the integer after it.
Examples:
-1.7 rounds to -1
-1.3 rounds to -1
1.3 rounds to 2
1.7 rounds to 1
Rounding Down[edit | edit source]
To round down, you round all numbers to the integer before it.
Examples:
-1.7 rounds to -2
-1.3 rounds to -2
1.3 rounds to 1
1.7 rounds to 1
Rounding Towards Zero[edit | edit source]
To round towards zero, you round all numbers to the nearest integer that is closer to zero.
Examples:
-1.7 rounds to -1
-1.3 rounds to -1
1.3 rounds to 1
1.7 rounds to 1
Rounding Away From Zero[edit | edit source]
To round away from zero, you round all numbers to the nearest integer that is further from zero.
Examples:
-1.7 rounds to -2
-1.3 rounds to -2
1.3 rounds to 2
1.7 rounds to 2
Rounding To the Nearest Integer[edit | edit source]
Rounding to the nearest integer is self-explanatory. The problem is that some numbers don't have a 'nearest integer', notably, the numbers that are halfway between integers.