Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 9/08/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

BGE

Elemental Intrinsic Function (Generic): Performs a bitwise greater than or equal to on its arguments.

result = BGE (i,j)

i

(Input) Must be of type integer or a binary, octal, or hexadecimal literal constant.

j

(Input) Must be of type integer or a binary, octal, or hexadecimal literal constant.

If the kinds of i and j do not match, the value with the smaller kind is extended with zeros on the left and the larger kind is used for the operation and the result.

Results

The result is true if the sequence of bits represented by i is greater than or equal to the sequence of bits represented by j, according to the method of bit sequence comparison in Bit Sequence Comparisons; otherwise, the result is false.

The interpretation of a binary, octal, or hexadecimal literal constant as a sequence of bits is described in Binary, Octal, Hexadecimal, and Hollerith Constants.

The model for the interpretation of an integer value as a sequence of bits is shown in Model for Bit Data.

Example

If BIT_SIZE (J) has the value 8, BGE (Z'FF', J) has the value true for any value of J. BGE (0, -1) has the value false.

See Also