Converts real binary (floating-point) values to hexadecimal representation.
Category: | Numeric |
Alignment: | Left |
specifies the width of the output field.
Default | 8 |
Range | 1–16 |
Tip | If w< 16, the HEXw. format converts real binary numbers to fixed-point integers before writing them as hexadecimal characters. It also writes negative numbers in two's complement notation, and right aligns digits. If w is 16, HEXw. displays floating-point values in their hexadecimal form. |
Statements
|
Results
|
---|---|
----+----1----+----2 |
|
select put(35.4, hex8.); |
00000023 |
select put(88, hex8.); |
00000058 |
select put(2.33, hex8.); |
00000002 |
select put(-150, hex8.); |
FFFFFF6A |