H (Hybrid) Language
∟"integer" Data Type
This chapter provides notes on 'integer' Data Type in H language.
What Is "integer" Data Type
"integer" Literals
Constructor Function: integer()
"integer" "addition" Operation
"integer" "subtraction" Operation
"integer" "multiplication" Operation
"integer" "division" Operation
"integer" "modulo" 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
"integer" "greater-than-or-equal-to" Operation
"integer" "less-than-or-equal-to" Operation
Takeaways:
- "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
About This Book
Introduction of H Language
Syntax
Data Types
Variables
Expressions
Statements
"boolean" Data Type
►"integer" Data Type
"string" Data Type
"real" Data Type
"array" Data Type
Source Code Packages
Classes and Objects
Object Oriented Programming
Inheritance - Object Attachments
Encapsulation - Private Members
References
Full Version in PDF/ePUB