If the number you are trying to round ends in a 5 or higher, then you round up. If it's less than 5, you round down.
For example:
15 rounds up to 20
4 rounds down to zero.
214.89 rounds down to 210.
90 doesn't round to anything because it is already at a ten.
Mathematically, and programmatically, speaking it can be solved using these variables and conditions
n = number
b = base (10, 100...)
m = n Mod b
r = n-m
if m/b is more than or equal to 0.5 then r+b
r = rounded number
if the number is negative, the function rounding is re
Chat with our AI personalities
The number 90 is already rounded to the nearest ten.
85
412830
The number 387,210 rounded to the nearest ten thousand is 390,000.
95,96,97,98,99 round them up to the ten, all 100 to the 100, all 100.