Returns the floor of a number, similar to rounding but always rounds down: 5.999 becomes 5, and -5.001 becomes -6. floor and Int will always give the same output, and iPart and Int will return the same output with a positive input.

This function can be used to verify that a value is an integer with Int(value)=value.

Location Edit

  • Math
  • NUM
  • 5:Int(

Example Edit

:Disp X

If you run this program, it will return "5".