|
> And perhaps more specifically was there a warning somewhere that the > behavior changed in V5R2 and results are now different than in previous > releases? To me, this is not a programming issue, it's a backwards > compatibility issue. The RPG Reference V5R2, Chapter 10 (Data types and formats) page 186: "Note: Float variables conform to the IEEE standard as supported by the OS/400 operating system. Since float variables are intended to represent ?scientific? values, a numeric value stored in a float variable may not represent the exact same value as it would in a packed variable. Float should not be used when you need to represent numbers exactly to a specific number of decimal places, such as monetary amounts." I realise that this isn't an explanation of why the results are different between V5R1 and V5R2. It does seem to be a disclaimer that we shouldn't expect float to be terribly precise, which is a different attribute from repeatable. I apologise for the non-web manual references; I keep the PDF on my desktop and frankly it is far easier for me to crack open the book than to surf the web. --buck
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.