sprintf
Description
Uses the common C-language "printf" function inside Max. You can combine symbols, organize lists of numbers, or format messages or menu items. For complete documentation, refer to a standard C library reference manual.
Examples

Arguments
symout [symbol]
If the first argument is the word sprintf object outputs the string it generates as a single symbol. Otherwise the output is a list of symbols and/or numbers. The word itself is not included in the output of sprintf.
, theformat [symbol]
The arguments form a message to be sent out, in a format resembling the C programming language. The arguments may be words, numbers, or changeable arguments for incoming symbols (
( ), floats ( ), and ints that are to be formatted as ASCII characters ( ). The number of inlets is determined by the number of changeable arguments, with each inlet corresponding to a changeable argument, in order.Attributes
Common Box Attributes
Messages
bang
Any of the above messages in the left inlet will format the message and send it out. If no value has been received for a changeable number argument ( or ), 0 will be substituted for that argument. If no value has been received for a or argument, that argument will be left blank.
int
Arguments
float
Arguments
list
Arguments
anything
Arguments
symbol
Arguments
Output
anything
The message specified by the typed-in argument(s) is formatted and sent out with substitutions made for the changeable arguments.
See Also
Name | Description |
---|---|
atoi | |
combine | |
fromsymbol | |
itoa | |
key | |
keyup | |
message | |
regexp | |
spell | |
tosymbol |