Product Information > JADE Error Messages and System Messages > 6000 through 6999 - JADE Compiler Errors > 6260 - Scale factor cannot be negative

6260   Scale factor cannot be negative

Cause

This error occurs if the scale factor of a Decimal variable is negative. In the definition of a Decimal variable, the precision is the first value within the brackets ([]) and the scale factor is the second.

The following code fragment shows this error.

vars
    d: Decimal[12, -4];     // error: negative scale factor not valid

Action

Change the scale factor to an integer value in the range 1 through 23, not greater than the precision.