getDeclaredPrecision

getDeclaredPrecision(): Integer;

The getDeclaredPrecision method of the Decimal primitive type returns the declared length of the receiver; that is, the first value within the brackets ([]) defined for the Decimal variable.