Printf
Print args
using C printf
style format specification string. Optionally, an IO
may be passed as the first argument to redirect output.
Examples
For a systematic specification of the format, see . See also: @sprintf
.
Inf
and are printed consistently as Inf
and NaN
for flags %a
, %A
, %e
, , %f
, %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.
Examples
Return formatted output as string.
Examples