The G specifier is for decimal real data items. The general form is
|
G [ w [ .d ] ] |
|
|---|---|
|
or: |
|
|
G w.d E e |
|
:
The D, E, F, and G edit specifiers interpret data in the same way.
The representation for output by the G edit descriptor depends on the magnitude of the internal datum. In the following table, N is the magnitude of the internal datum.
|
Range |
Form |
|---|---|
|
0.1 <= N < 1.0 1.0 <= N < 10.0 ... 10(d-2) <= N <= 10(d-1) 10(d-1) <= N < 10d |
F(w-4).d, n(¤) F(w-4).(d-1), n(¤) ... F(w-4).1, n(¤) F(w-4).0, n(¤) |