Syntax: %format(f,a,b,c,d...)

use a format string to format the values of a,b,c, etc. Format strings consist of a string of characters, with special format specifiers of the type &w.dx where w is the width of the field, d is the number of decimal places, and x is the format type. Format types for x include: s for string, n for number (commas every 3 digits), f for floating point, m for money (currency).

Normally you will set d to zero since zMUD does not support floating point numbers. The Money format uses the Windows standard currency strings.


#SHOW %format("&10.0n",123456)
will display 123,456 with 3 spaces padding the front
#SHOW %format("&3.0f &s",123,"coins")
will display '123 coins'

Contents find getglobal