Converts real binary (floating-point) values to hexadecimal values.
Category: | Numeric |
Alignment: | Left |
Windows specifics: | native floating–point representation |
See: | HEXw. Format in SAS Formats and Informats: Reference |
specifies the width of the output field. When you specify a w value of 1 through 15, the real binary number is truncated to a fixed-point integer before being converted to hexadecimal notation. When you specify 16 for the w value, the floating-point value of the number is used. In other words, the number is not truncated.
Default | 8 |
Range | 1–16 |
data _null_; x=123; put x=hex8.; run;
x=0000007B