#toDecimal
Returns a value converted to a floating point number.
#toDecimal(value)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
value |
path | value |
The value to convert. |
Returns
Section titled “Returns”number
Examples
Section titled “Examples”Parse a decimal string
Section titled “Parse a decimal string”{ "text": "1.5"}{ "result": "#toDecimal($.text)"}{ "result": 1.5}