|
Has any one come across a Rounding/Truncation problem in RPG and RGPLE? If we a have a negative number with 2-decimals and do truncation to a field with no decimals for positive numbers it just drops the cents so 12.75 becomes 12 and 12.05 becomes 12, but for negative numbers a -12.75 be comes -13 and a -12.05 becomes -13. If we do half ajust then the 12.75 goes to 13 or -13 respectivly and the 12.05 goes 12 and -12. Seems like negative truncation is wrong becaue when we check this with a query it actually truncates on negatives not rounding down to the lower number. Any thoughts? (or am I just off in the head today?) Thanks, -- Jim Lowary ToastMaster/Salton, Inc.
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.