What Is "integer" Data Type

This section describes what is 'integer' data type.

"integer" data type defines how integer data objects should be constructed and what operations are provided for them.

"integer" data type should support the following features:

• "integer" literals: 0, 1, 2, 3, etc..
• "integer" constructor function: integer().
• "integer" "subtraction" operation function: integer.subtract().
• "integer" "subtraction" operator "-", alias of integer.subtract().
• "integer" "multiplication" operation function: integer.multiply().
• "integer" "multiplication" operator "*", alias of integer.multiply().
• "integer" "division" operation function: integer.divide().
• "integer" "division" operator "/", alias of integer.divide().
• "integer" "modulo" operation function: integer.remainder().
• "integer" "modulo" operator "%", alias of integer.remainder().
• "integer" "exponentiation" operation function: integer.exponent().
• "integer" "exponentiation" operator "**", alias of integer.exponent().
• "integer" "negation" operation function: integer.negative().
• "integer" "negation" operator "-x", alias of integer.negative().
• "integer" "absolute" operation function: integer.absolute().
• "integer" "absolute" operator "|x|", alias of integer.absolute().
• "integer" "greater-than" operation function: integer.greaterThan().
• "integer" "greater-than" operator ">", alias of integer.greaterThan().
• "integer" "less-than" operation function: integer.lessThan().
• "integer" "less-than" operator "<", alias of integer.lessThan().
• "integer" "equal-to" operation function: integer.equalTo().
• "integer" "equal-to" operator "~", alias of integer.equalTo().
• "integer" "not-equal-to" operation function: integer.notEqualTo().
• "integer" "not-equal-to" operator "!~", alias of integer.notEqualTo().
• "integer" "greater-than-or-equal-to" operation function: integer.greaterThanOrEqualTo().
• "integer" "greater-than-or-equal-to" operator ">~", alias of integer.greaterThanOrEqualTo().
• "integer" "less-than-or-equal-to" operation function: integer.lessThanOrEqualTo().
• "integer" "less-than-or-equal-to" operator "<~", alias of integer.lessThanOrEqualTo().

Last update: 2017.