Finally, in the case of reals, you can specify how many decimal places you require. This is slightly more complicated if a number is so large that it can only be represented using scientific notation. In the latter case, the computer uses a standard form of scientific notation which makes it put the first significant digit in the interval 0.1 to 0.9 and thus all significant digits are behind the decimal point. The real format asks for 12 print positions and wants 4 decimal places. For information on the format strings, see Format Strings.
Plain characters are copied verbatim to the resulting string.
Format specifiers fetch arguments from the argument list and apply formatting to them. The argument must be an integer value. The value is converted to a string of decimal digits. The argument must be a floating-point value. The argument must be a floating-point value.