Numeric expressions

A numeric expression evaluates to a decimal value.

MAIN
  DEFINE r, c DECIMAL(10,2)
  LET c = 456.22
  LET r = c * 2 + ( c / 4.55 )
END MAIN

The operands of a numeric expression can be one of:

If a number expression includes an operand whose value is not a numeric data type, the runtime system attempts to convert the value to a number according to the data conversion rules.

If an element of a number expression is NULL, the expression is evaluated to NULL.