-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,315
  • 4
  • 15
  • 29
Gokul H
  • 7
  • 3

1 Answers1

0

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

Barmar
  • 741,623
  • 53
  • 500
  • 612