Visible to Intel only — GUID: GUID-622ADC31-83D1-4276-9A7D-800224ECB34F
Visible to Intel only — GUID: GUID-622ADC31-83D1-4276-9A7D-800224ECB34F
BGT
Elemental Intrinsic Function (Generic): Performs a bitwise greater than on its arguments.
result = BGT (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 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
BGT (Z'FF', Z'FC') has the value true. BGT (0, -2) has the value false.