Skip to content

even

Round up to the nearest even integer.

v = even(number)

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

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