PrintDouble
The combination of a Double value and a DoubleFormat format string.
PrintDouble
value. However one can be generated dynamically by calling
the $format_double()
function.
$format_double()
function to combine the value of PI with
a "+.3f"
format specifier. This returns
a PrintDouble
value, which is then passed to
the print
command, which
prints PI using the specified format.
print $format_double("+.3f", 3.14159265);This produces the following output:
+3.142Further examples can be found in the documentation of the
DoubleFormat
datatype.