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

FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi
JudyJudy
Simplicity is my specialty.
Chat with Judy
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