answersLogoWhite

0

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

11y ago

Still curious? Ask our experts.

Chat with our AI personalities

RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
RossRoss
Every question is just a happy little opportunity.
Chat with Ross
More answers

17

User Avatar

Anonymous

4y ago
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