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
  • toNumericString: Converts an integer or float value to a numeric string value. Optional: Specify the Pad length: Total length of the numeric string to be zero padded up to, with 0 meaning no padding is added. For example, if you set the Padding to 10 and your numeric string value is 7 digits long, three zeroes are prepended to the string to get to 10 places.
  • 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.