answersLogoWhite

0


Best Answer

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

User Avatar

Wiki User

10y ago
This answer is:
User Avatar
More answers
User Avatar

Anonymous

Lvl 1
3y ago

17

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you round to the nearest ten in the number?
Write your answer...
Submit
Still have questions?
magnify glass
imp