FORMAT

From STX Wiki
< Programmer Guide‎ | Command Reference
Revision as of 15:05, 17 May 2010 by 193.171.195.8 (talk) (initial import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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