Previous: , Up: Input Data Formats   [Contents][Index]


4.3.9.2 Input Format Examples

Here are some examples. The numerical examples all have an argument 3.14159265, except for the %t and %T examples which have arguments 3,14,15.92. The string examples have argument 'alphabet soup'. The results are shown as would be produced by default type: with at most 6 digits after the decimal point.

%d

3

%f

3.141593

%5f

3.141

%5-3f

3.141 and 592

%T

3.233333 (equivalent to 3:14)

%.3T

3.237756 (equivalent to 3:14:15.92)