Int

Function

Int(value)

value

Use

The Int() function returns the next lower integer, rounding down towards negative infinity.

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, Int(5.8ft) to mm and Int(5.8 ft to mm) will return values that are not equal.

Examples
  • Int(1.8)  = 1
  • Int(1.2)  = 1
  • Int(-1.8)  = -2
  • Int(3.2 ft)  = 3ft
  • Int(3.2 ft) to mm  = 914.4 mm
  • Int(3.2 ft to mm)  = 975 mm

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

 

See also: