FANDOM


:Int(value)

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

:5.999N
:int(N)→X
:Disp X

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

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.