Skip to content

decimal ​

Checks that the value is a number, an integer or a decimal. Strings that look like numbers are accepted and returned as numbers.

Error codes: NOT_DECIMAL, FORMAT_ERROR

Live example · edit rules or inputOpen in playground
rules
input
Validoutput
{
  "price": 12.5
}