Integer

The value derived from the function is an integer value.

This table shows the commands and the related syntax used for the Integer data type:

Command Syntax Examples
NUM

The NUM command converts a boolean or a string into an integer or real value. Therefore, the command can be used here if the value read in converts into an integer.

 NUM(<value>)

NUM(True)=1
NUM(False)=0
NUM(<Logical expression>)=1/0

 NUM("~")=numeric value of the value read in interpreted as a string

NUM("a123bfg")=123

Operators

These operators can be used to manipulate integer values:

  • +
  • -
  • *
  • \ (integer division)
  • / (real division)
  • % (modulo for integer)