Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
|
<<SNIP>>
When I change the definition of shippedUnits to 31p 0 (the max from
the manual) there is no warning. But when I change the definition to
11p 0 (what I thought should be the min) I get the warning.
I was calculating the precision as follows. <<SNIP>>
The SUM function is then used which is understand to be basically
addition.
(From the SQL reference)
<snip>Addition and subtraction
The scale of the result of addition and subtraction
is max (s,s'). The precision is
min(mp,max(p-s,p'-s')+max(s,s')+1).
</snip>
So I would think the precision is 10 + 1 or 11 which leads to 11p 0.
I think it's the SUM function that I'm not calculating correctly.
This is my thought process but obviously it is incorrect. Can someone
please point out where I'm going wrong so I don't make this error
again in the future.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.