str.format
Fills the placeholders of formatString with the arguments: {0} is the first argument after formatString, {1} the next. A number shows with thousands separators and at most 3 decimals; {0,number,#.##} uses a pattern (0 = a digit always shown, # = shown when not 0, a trailing % multiplies by 100), {0,number,integer} a whole number, {0,number,percent} times 100 with "%", {0,number,currency} "quot; and 2 decimals. Text in single quotes is copied as it is. Dates: str.format_time.
str.format(formatString: string, ...args: any) -> string
Parameters
formatStringstring: The text with placeholders {0}, {1}, ... (see above); text in single quotes is copied as it is.argsany: numbers, bools or strings, in placeholder order
Example
label.new(bar_index, high, str.format("{0} bars, range {1,number,#.##}", 20, high - low))