|
select decimal((10**6-1)/10**2,6,2) from sysibm/sysdummy1
You will not get 9999.99 as you would expect.
P.S. As an aside, Excel gets this right, so it's not some mystical
issue
with 6,2 fields. I haven't tried it in SQL Server or MySQL, so I can't
say whether it's DB2 specific. I'd be interested to know.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.