Programmer Guide/Command Reference/FORMAT: Difference between revisions

From STX Wiki
Jump to navigationJump to search
(initial import)
 
m (1 revision: Initial import)
(No difference)

Revision as of 18:31, 18 November 2010

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