"integer" "less-than-or-equal-to" Operation

This section describes 'integer' 'less-than-or-equal-to' operation

The "integer" "less-than-or-equal-to" operation is provided through the integer.lessThanOrEqualTo() function, which has the following syntax:

integer.lessThanOrEqualTo(a, b)

Parameters:
   a - The first "integer" data object
   b - The second "integer" data object
   
Return: 
   Returns a new "boolean" data object representing 
   $true, if "a" is less than or equal to "b".

The "integer" "less-than-or-equal-to" operation can be expressed in the "<~" operator format:

a <~ b; # alias of the following function call
integer.lessThanOrEqualTo(a, b); 

Design options:

1. Use "<~" as the "less-than-or-equal-to" operator.

2. Use "<=" as the "less-than-or-equal-to" operator.

4. Use "leq" as the "less-than-or-equal-to" operator.

Last update: 2017.

Table of Contents

 About This Book

 Introduction of H Language

 Syntax

 Data Types

 Variables

 Expressions

 Statements

 "boolean" Data Type

"integer" Data Type

 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

 "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

 PDF Printing Version