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

"real" Data Type

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

"real" "subtraction" Operation

"real" "multiplication" Operation

"real" "exponentiation" Operation

"real" "greater-than" Operation

"real" "not-equal-to" Operation

Conclusion:

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