"real" Literals

This section describes 'real' literals

Literals for "real" data type are real numbers written in the commonly used format of 0.0, 3.14, 2.9979e8, ....

There are two ways to differentiate a "real" literal from an "integer" literal:

Examples of "real" literals are:

0.0; 
3.14;
2.9979e8;

There are no "real" literals for negative real numbers. To enter a negative real number in the source code, you need to use a "real" "negation" operation expression as shown below:

-1.0; # "real" "negation" operation expression
-3.14; # "real" "negation" operation expression

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