For the numeric and decimal types, each combination of precision and scale is a distinct SAP ASE datatype.
If you perform arithmetic on two numeric or decimal values, n1 with precision p1 and scale s1, and n2 with precision p2 and scale s2, SAP ASE determines the precision and scale of the results as in the following table.