Number Formatter
Function converting numbers to strings
Evaluation
This expression evaluates to a function of the form:
(x) -> string
The function is consistent with formatter semantics used for data to string conversion, as used for example by the CSV Output step.
Processing
Argument x
is converted into a string using the given pattern and locale. The resulting string is returned.
If x
is nil
, the configured nil value is returned.
If x
is not a long
or double
, an error is thrown.
Settings
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Pattern |
string |
A Java DecimalFormat pattern. Example patterns for number
|
||||||||||
Locale |
string | The locale determines decimal point, grouping, and number characters | ||||||||||
Nil Value |
string |
If the number to convert is nil the function returns this value. |