numberFormat($pattern)
Constructs a number format with the given pattern for either parse() or format() calls.
See DecimalFormat.
| Name | Type | Description | Mandatory | Default |
|---|---|---|---|---|
| pattern | String | The pattern in which to format. It is specified as follows:
|
yes |
Type: Business object
A number format that can now be used for parse() or format() calls.
numberFormat("###,###.###").format(123456.59874)
Output: 123.456,599
numberFormat("###,###.000").format(123456.5)
Output: 123.456,500
numberFormat("###,###.###").format(123456.5)
Output: 123.456,5