STRING_FORMAT
Format any number of inputs into a string using the given format.
Syntax
Arguments
Name | Type | Description | Default Value |
---|---|---|---|
formatString | string | The format string where {n} prints the n'th input. For example, the pattern '{0}.{0}.{1}' on the inputs 'a' and 'b' will result in the string 'a.a.b' | null |
inputs# | any |
Returns
Returns a string
value.
Examples
formatString | inputs1 | inputs2 | inputs3 | Output |
---|---|---|---|---|
'{0} {1} {2}' | 'a' | 'b' | 'c' |
|
'{0}' | 1.23 |
| ||
'{0,number,percent}' | 0.5 |
| ||
'{0,number,#.###}' | 1.23456 |
| ||
'{0,number,#.###}' | 1.2 |
| ||
'{0,number,0.000}' | 1.23456 |
| ||
'{0,number,0.000}' | 1.2 |
| ||
'{0,number,###,###.###}' | 123456789.01235 |
| ||
'{0,number,000,000.000}' | 123456789.01235 |
|
Transformation job example
SQL
Query result
formatString | inputs1 | inputs2 | inputs3 | Output |
---|---|---|---|---|
'{0} {1} {2}' | 'a' | 'b' | 'c' |
|
Last updated