format()

Format:
format( float_expr x, format_specification))
Result:
Text
Description:
The number x is converted to a string using the format_specification (C syntax).
e.g.:
SPECTRA> * = format( 12.34567, %.2f)
12.35
SPECTRA> * = format( 12.34567, %e)
1.234567e+01
SPECTRA> * = format( 12.34567, %g)
12.3457