![]() Chapter Contents |
![]() Previous |
![]() Next |
| HEXw. |
| Category: | Numeric |
| Syntax | |
| Syntax Description | |
| Details | |
| Examples |
Syntax |
| HEXw. |
| Default: | 8 |
| Range: | 1-16 |
| Tip: | If w<16, HEXw. converts the input value to positive integer binary values, treating all input values as positive (unsigned). If w is 16, HEXw. converts the input value to real binary (floating-point) values, including negative values. |
| Details |
Note: Different operating environments store floating-point
values in different ways. However, HEX16. reads hexadecimal representations
of floating-point values with consistent results if the values are expressed
in the same way that your operating environment stores them. ![[cautionend]](../common/images/cautend.gif)
The HEXw. informat ignores leading or trailing blanks.
| Examples |
input @1 x hex3. @5 y hex16.;
| Data Lines* | Results |
|---|---|
----+----1----+----2 |
|
88F 4152000000000000 |
2191 5.125 |
| *The data line shows IBM mainframe hexadecimal data. | |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.