Previous Page | Next Page

Formats under OpenVMS

PIBw.d Format: OpenVMS



Writes positive integer-binary fixed-point values.
Category: numeric
Width range: 1 to 8
Default width: 1
Decimal range: 0 to 10
Alignment: left
OpenVMS specifics: overflow behavior
See: PIBw.d Format in SAS Language Reference: Dictionary

Syntax
Details
Example
See Also

Syntax

PIBw.d

w

specifies the width of the output field in bytes (not digits).

d

specifies a scaling factor. The scaling factor is optional. When you specify a d value, the PIBw.d format multiplies the number by the 10d value, and then applies the positive integer binary format to that value.


Details

If the value to be formatted is too large to fit in a field of the specified width, then this format does the following:

If a noninteger value is formatted, rounding occurs.

For more information about OpenVMS native fixed-point values, see HP OpenVMS Programming Concepts Manual, Volume II, Part I, OpenVMS Programming Interfaces: Calling a System Routine.


Example

If you format the value 300 with the PIB1. format, you receive the following value:

255

which is the largest unsigned value that fits in a 1-byte field.


See Also

Previous Page | Next Page | Top of Page