NUMERIC and DECIMAL

Formats for NUMERIC and DECIMAL data types vary as a function of precision.

The value must be right-padded with zeros to the full scale of the value. The value must also be fully left-padded with zeros, but, with binary programming, padding happens automatically. Once the values are padded, the decimal point is removed. For example, the value 12.34 looks like:
After the value is padded and the decimal point is removed, these rules apply: