Printf
Print args
using C printf
style format specification string, with some caveats: Inf
and NaN
are printed consistently as Inf
and for flags %a
, %A
, %e
, %E
, %f
, , %g
, and %G
. Furthermore, if a floating point number is equally close to the numeric values of two possible output strings, the output string further away from zero is chosen.
Optionally, an IOStream
may be passed as the first argument to redirect output.
Examples
Return formatted output as string.
Examples