receiving_string+0 had been
carried out. If you
specify no arguments the result of the method is the same as the result of
this operation. If you specify any options, the number is formatted as
described in the following.0 causes the number to be rounded
to an integer."3"~format(4) --> " 3"
"1.73"~format(4,0) --> " 2"
"1.73"~format(4,3) --> " 1.730"
"-.76"~format(4,1) --> " -0.8"
"3.03"~format(4) --> " 3.03"
" - 12.73"~format(,4) --> "-12.7300"
" - 12.73"~format --> "-12.73"
"0.000"~format --> "0"
0, the number is not an exponential expression.
If expp is not large enough to contain the
exponent, an error results.0, exponential notation is always used unless
the exponent would be 0. (If
expp is
0, this
overrides a 0 value of
expt.) If the exponent would be
0 when a nonzero
expp is specified, then
expp+2 blanks
are supplied for the exponent part of the result. If the exponent would be
0 and expp
is not specified, the number is not an exponential
expression."12345.73"~format(, ,2,2) --> "1.234573E+04"
"12345.73"~format(,3, ,0) --> "1.235E+4"
"1.234573"~format(,3, ,0) --> "1.235"
"12345.73"~format(, ,3,6) --> "12345.73"
"1234567e5"~format(,3,0) --> "123456700000.000"