Excerpt | ||
---|---|---|
| ||
format(formatString, arg1, ..., argN) Formats a string according to a template format and supplied arguments. |
Function: format()
Formats a string according to a template format and supplied arguments.
...
format(formatString, arg1, ..., argN)
Argument | Type | Description |
---|---|---|
formatString | Format String | A string defining the format of the result. (Format String Syntax) |
arg1..N | Any | Any number of arguments to be placed into formatString |
Examples
format("%10.3f", in.callTotal)
...
The formatString can also contain fixed plain text string elements elements as in this case which returns, with in.callTotal = 25.33256:
"Value to 3 decimal places is: 25.333, or rounded to a whole number and padded with zeroes is: 0000000025"
...