FORMAT
From STX Wiki
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
'.