Even

Function

Even(number)

number

The Even() function returns the next even number, rounding up away from zero.

Units

Numbers with units will be rounded based on those units. This means that the unit a number has at the point of calculation will affect the answer.

For example, Even(5.8ft) to mm and Even(5.8 ft to mm) will return values that are not equal.

Examples
  • Even(1.8)  = 2
  • Even(1.2)  = 2
  • Even(-1.8)  = -2
  • Even(3.2 ft)  = 4ft
  • Even(3.2 ft) to mm  = 1219.2 mm
  • Even(3.2 ft to mm)  = 976 mm

Even is included by default in each file as part of the Math library.

 

See also: