INT

This command will return the largest integer before the decimal point of a real number.

  Syntax
Return Integer=INT(Value)
  Parameters
Value
Float
This value is a float number such as 0.5

  Returns

This value is an integer number such as 1.

  Description

The return value will be an integer number.

  Example Code
print abs(1.23)    :` 1.23
print int(1.23) :` 1
print floor(1.23) :` 1
print ceil(1.23) :` 2
print
print abs(-1.23) :` 1.23
print int(-1.23) :` -1
print floor(-1.23) :` -2
print ceil(-1.23) :` -1
print
wait key
  See also

CORE Commands Menu
Index