LCNumeric class overview

The LCNumeric class represents a numeric value containing a precision, scale, and variable number of digits. Numeric values have a specific precision and scale, and can accommodate very high-precision numbers.

Precision refers to the total number of decimal digits the number can store. Scale tells how many digits follow the decimal point. Or, to be more exact, it's the base ten exponent by which the number is divided to produce the actual value. For example, a numeric value with a scale of -2 can only store values that are multiples of 100.

By default, a new numeric submitted to any other numeric method is initialized to a precision of 88 and a scale of 44. During any numeric overflow, the maximum or minimum valid numeric value is assigned in addition to the error occurring.

The precision and scale of a numeric can only be set when it is first created.