**H (Hybrid) Language** - Version 0.02, by Dr. Herong Yang

"integer" Data Type

This chapter provides notes on 'integer' Data Type in H language.

Constructor Function: integer()

"integer" "addition" Operation

"integer" "subtraction" Operation

"integer" "multiplication" Operation

"integer" "division" Operation

"integer" "exponentiation" Operation

"integer" "negation" Operation

"integer" "absolute" Operation

"integer" "greater-than" Operation

"integer" "less-than" Operation

"integer" "equal-to" Operation

"integer" "not-equal-to" Operation

Conclusion:

- "integer" data type defines how integer data objects should be constructed and what operations are provided for them.
- Literals for "integer" data type are integers written in the commonly used format of 0, 1, 2, 3, ....
- New "integer" data object can be created with the constructor function, integer().
- The "integer" "addition" operation is provided through the integer.add() function.
- The "integer" "subtraction" operation is provided through the integer.subtract() function.
- The "integer" "multiplication" operation is provided through the integer.multiply() function.
- The "integer" "division" operation is provided through the integer.divide() function.
- The "integer" "modulo" operation is provided through the integer.remainder() function.
- The "integer" "exponentiation" operation is provided through the integer.exponent() function.
- The "integer" "negation" operation is provided through the integer.negative() function.
- The "integer" "absolute" operation is provided through the integer.absolute() function.
- The "integer" "greater-than" operation is provided through the integer.greaterThan() function.
- The "integer" "less-than" operation is provided through the integer.lessThan() function.
- The "integer" "equal-to" operation is provided through the integer.equalTo() function.
- The "integer" "not-equal-to" operation returns $true if the first operand is equal to the second operand in value.
- The "integer" "greater-than-or-equal-to" operation returns $true, if the first operand is greater than or equal to the second operand.
- The "integer" "less-than-or-equal-to" operation returns $true, if the first operand is less than or equal to the second operand.

Table of Contents

Inheritance - Object Attachments