Printf

    Print 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 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.

    Examples

    Julia 1.8

    — Macro

    Return @printf formatted output as string.

    Examples