0

How can I round the following numbers:

16554.2644 and 2238.987

to:

16550 and 2240

and

16560 and 2230

Thanks

aaaaa
  • 149
  • 2
  • 18
  • 44
  • [R round to nearest .5 or .1](https://stackoverflow.com/questions/8664976/r-round-to-nearest-5-or-1) – user2974951 Dec 22 '21 at 14:16
  • [Rounding numbers to nearest 10 in R](https://stackoverflow.com/questions/18492836/rounding-numbers-to-nearest-10-in-r?noredirect=1&lq=1) – user2974951 Dec 22 '21 at 14:17

1 Answers1

0

Divide the number by 10, round using either floor or ceil and then multiply by 10.

Mat
  • 191
  • 7