Skip to content

#isDecimal

Returns true if the value is a floating point number.

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

boolean

source.json
{
"a": 5,
"b": 5.5
}
transformer.json
{
"a": "#isDecimal($.a)",
"b": "#isDecimal($.b)"
}
output.json
{
"a": false,
"b": true
}

Try it in the playground →

#isInteger · #toDecimal