Formats |
Category: | Numeric |
Alignment: | left |
See: | HEXw. Format under Windows UNIX OpenVMS z/OS |
Syntax | |
Syntax Description | |
Details | |
Comparisons | |
Examples |
Syntax |
HEXw. |
specifies the width of the output field.
Details |
In any operating environment, the least significant byte written by HEXw. is the rightmost byte. Some operating environments store integers with the least significant digit as the first byte. The HEXw. format produces consistent results in any operating environment regardless of the order of significance by byte.
Note: Different operating environments store floating-point values in different ways. However, the HEX16. format writes hexadecimal representations of floating-point values with consistent results in the same way that your operating environment stores them.
Comparisons |
The HEXw. numeric format and the $HEXw. character format both generate the hexadecimal equivalent of values.
Examples |
put @8 x hex8.;
Value of x | Results |
---|---|
|
----+----1----+----2 |
35.4 |
00000023 |
88 |
00000058 |
2.33 |
00000002 |
-150 |
FFFFFF6A |
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.