0

basically i want to round up a number to the next 10 so 44 becomes 50 any number I've tried roundup = round(r8, -1) but this only rounds normally

billy
  • 1
  • 2

1 Answers1

0

Try:

int(math.ceil(n / 10.)) * 10
S. de Melo
  • 786
  • 4
  • 11