%sprintf()

Aliases%sprintf( )
Parametersstring @format [, mixed @p1 [, mixed @p2 [, ...]

    Functionally equivalent to the C version of sprintf, this function can be
used to format data for printing or echoing. Make sure when echoing that
you use the appropriate semantics to prevent wrapping/space collapsing
where necessary.

For details on the format parameter you can go here:

http://www.cplusplus.com/ref/cstdio/sprintf.html


Example:
--------------------------------------------------------------------------

@aveText = %sprintf( "The average is: %.2f", @average )