Skip to content

#toDecimal

Returns a value converted to a floating point number.

#toDecimal(value)
Category Types and conversionValid in Property value
Name Type Description
value path | value The value to convert.

number

source.json
{
"text": "1.5"
}
transformer.json
{
"result": "#toDecimal($.text)"
}
output.json
{
"result": 1.5
}

Try it in the playground →

#toInteger · #isDecimal