H (Hybrid) Language
∟"real" Data Type
This chapter provides notes on 'real' Data Type in H language.
What Is "real" Data Type
"real" Literals
Constructor Function: real()
"real" "addition" Operation
"real" "subtraction" Operation
"real" "multiplication" Operation
"real" "division" Operation
"real" "exponentiation" Operation
"real" "negation" Operation
"real" "absolute" Operation
"real" "greater-than" Operation
"real" "less-than" Operation
"real" "equal-to" Operation
"real" "not-equal-to" Operation
"real" "greater-than-or-equal-to" Operation
"real" "less-than-or-equal-to" Operation
Takeaways:
- "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
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