Prints variables, possibly with a great range of values, lining up decimal places for values of similar magnitude.
Category: | Numeric |
Alignment: | Right |
specifies the width of the output field.
Default | 12 |
Range | 1–32 |
specifies the significant digits.
Default | 3 |
Range | 0–16 |
Requirement | must be less than w |
Statements
|
Results
|
---|---|
----+----1----+----2 |
|
select put (12345,d10.4); |
12345.0 |
select put (1234.5,d10.4); |
1234.5 |
select put (123.45,d10.4); |
123.45000 |
select put (12.345,d10.4); |
12.34500 |
select put (1.2345,d10.4); |
1.23450 |
select put (.12345,d10.4); |
0.12345 |