Prints numeric values, lining up decimal places for values of similar magnitude, and prints integers without decimals.
Category: | Numeric |
Alignment: | Right |
specifies the width of the output field.
Default | 12 |
Range | 1–32 |
specifies the precision.
Default | 3 |
Range | 0 to w–1 |
Requirement | must be less than w |
Tip | If p is omitted or is specified as 0, then p is set to 3. |
Statements
|
Results
|
---|---|
|
----+----1----+ |
select put (12345, bestd14.); |
12345 |
select put (123.45, bestd14.); |
123.4500000 |
select put (1.2345, bestd14.); |
1.2345000 |
select put (.12345, bestd14.); |
0.1234500 |
select put (1.23456789, bestd14.); |
1.23456789 |