-1

For example
round(18.5) gives me 18
round(19.5) gives me 20
I want the output of round(18.5) to be 19

ppwater
  • 2,304
  • 4
  • 14
  • 29
Gokul H
  • 7
  • 3

1 Answers1

0

math.floor(x + 0.5) will always round .5 up.

Barmar
  • 669,327
  • 51
  • 454
  • 560