For numeric and decimal datatypes, each combination of precision and scale is a distinct Adaptive Server 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 n2
Adaptive Server determines the precision and scale of the results as shown in Table 1-3.
Copyright © 2005. Sybase Inc. All rights reserved. |