Skip to content

odd

Round up to the nearest odd integer.

v = odd(number)

Rounds number up (away from zero) to the next odd integer.

odd(1.5) % 3
odd(2) % 3
odd(-2) % -3
  • even — Round up to the nearest even integer.
  • ceiling — Round up to a multiple of significance.