H (Hybrid) Language
∟"real" Data Type
∟What Is "real" Data Type
This section describes what is 'real' data type.
"real" data type defines how real number data objects should be constructed
and what operations are provided for them.
"real" data type should support the following features:
- "real" literals: 0.0, 3.14, 2.9979e8, etc..
- "real" constructor function: real().
- "real" "addition" operation function: real.add().
- "real" "addition" operator "+", alias of real.add().
- "real" "subtraction" operation function: real.subtract().
- "real" "subtraction" operator "-", alias of real.subtract().
- "real" "multiplication" operation function: real.multiply().
- "real" "multiplication" operator "*", alias of real.multiply().
- "real" "division" operation function: real.divide().
- "real" "division" operator "/", alias of real.divide().
- "real" "exponentiation" operation function: real.exponent().
- "real" "exponentiation" operator "**", alias of real.exponent().
- "real" "negation" operation function: real.negative().
- "real" "negation" operator "-x", alias of real.negative().
- "real" "absolute" operation function: real.absolute().
- "real" "absolute" operator "|x|", alias of real.absolute().
- "real" "greater-than" operation function: real.greaterThan().
- "real" "greater-than" operator ">", alias of real.greaterThan().
- "real" "less-than" operation function: real.lessThan().
- "real" "less-than" operator "<", alias of real.lessThan().
- "real" "equal-to" operation function: real.equalTo().
- "real" "equal-to" operator "~", alias of real.equalTo().
- "real" "not-equal-to" operation function: real.notEqualTo().
- "real" "not-equal-to" operator "!~", alias of real.notEqualTo().
- "real" "greater-than-or-equal-to" operation function: real.greaterThanOrEqualTo().
- "real" "greater-than-or-equal-to" operator ">~", alias of real.greaterThanOrEqualTo().
- "real" "less-than-or-equal-to" operation function: real.lessThanOrEqualTo().
- "real" "less-than-or-equal-to" operator "<~", alias of real.lessThanOrEqualTo().
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
►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
"array" Data Type
Source Code Packages
Classes and Objects
Object Oriented Programming
Inheritance - Object Attachments
Encapsulation - Private Members
References
Full Version in PDF/ePUB