HEXw. Format: UNIX

Converts real binary (floating-point) numbers to hexadecimal representation.
Category: Numeric
Alignment: left
Default: 8
Range: 1 to 16
UNIX specifics: floating-point representation
See: HEXw. Format in SAS Formats and Informats: Reference

Details

The HEXw. format converts a real (floating-point) binary number to its hexadecimal representation. When you specify a width value of 1 through 15, the real binary number is truncated to a fixed-point integer before being converted to a hexadecimal number. When you specify 16 for the width, SAS writes the floating-point value of the number, but does not truncate it.
Note: UNIX systems vary widely in their floating-point representation. For more information, see Reading and Writing Binary Data in UNIX Environments.