Previous Topic Next topic Print topic


Input Conversion

For E-Format input conversion, a field of w characters from the input line is converted to a floating-point decimal value of precision p. If the field contains a decimal point and/or an exponent, the value of d is ignored; otherwise, d indicates that the last d digits in the field are fractional digits. If a field contains all blanks, p is MIN(n,w), where n is the maximum precision allowed by the implementation for floating-point decimal values; otherwise, p is the precision of the constant contained within the field. The field must either be all blank or must contain an optionally signed fixed-point or floating-point constant preceded or followed by optional blanks.

The following results are produced by an E(6,1) format.

Field     Result
boxes 0E0
boxes-1boxes -0.1E0
-25E10 -25E10
boxes7.41boxes 7.41E0
boxes150boxes 15E0
Previous Topic Next topic Print topic