Chapter Contents

Previous

Next
HEXw.

HEXw.



Converts real-binary (floating-point) values to hexadecimal values

Language element: format
Category: numeric
Width range: 1 to 16
Default width: 8
Alignment: left
OpenVMS specifics: ASCII character-encoding system


Syntax
Details
See Also

Syntax

HEXw.

w
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.


Details

Each byte requires two columns to represent the corresponding hexadecimal digits. Under OpenVMS, the hexadecimal format of the number is stored in ASCII representation. For example, the decimal integer 17 has a hexadecimal value of 11, so the HEX2. format of 17 is 11.

If HEX16. is specified, the floating-point number is not converted to an integer, and you receive the hexadecimal representation of the native floating-point representation. The bytes of the number are printed so that the left-most byte is of the lowest significance. For more information about OpenVMS floating-point representation, see Architecture Reference Manual for Alpha and Architecture Reference Manual for VAX.

See Also


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.