getDeclaredScaleFactor

getDeclaredScaleFactor(): Integer;

The getDeclaredScaleFactor method of the Decimal primitive type returns the declared scale factor, or number of decimal places, of the receiver.

This method returns the optional second value within the brackets ([]) defined for the Decimal variable. (The first value is the precision, or length, of the Decimal variable.)

If the scale factor was not declared, this method returns zero (0).