FORMAT

From STX Wiki
< Programmer Guide‎ | Command Reference
Revision as of 18:31, 18 November 2010 by Admin (talk | contribs) (1 revision: Initial import)
Jump to navigationJump to search

FORMAT

var := FORMAT formatstring arg1 [arg2 ...]

-> var = formatted string

Assign values to a variable using a format string to format the result. Formats are described in Format Strings and Rules.

Even if you are using a format string which does not need an argument, the first argument is mandatory.

#srateHz := 44100#SRSTR := FORMAT '%.1f kHz' '$#srateHz/1000'

The variable #SRSTR is assigned the value '44.1 kHz'.

Navigation menu

Personal tools