Integer and Float

An integer is a whole number and a floating-point value, or float, is a number that has a decimal place. You can add the following methods to the integer and float data types.

  • add
  • divide
  • equals

  • greaterThan

  • greaterThanOrEqual

  • lessThan

  • lessThanOrEqual

  • isNull
  • multiply
  • modulo (Integer only): Returns the remainder when one integer is divided by another.
  • subtract
  • toString: Converts an integer or float value to a string value.

You can add literal values to integer and float data types. See Working with Literal Values.