I'd call that an implantation detail. The compiler would have to be smart enough to deal with it, and possibly require the parms in those cases.
-----Original Message-----
From: Mark Murphy [mailto:jmarkmurphy@xxxxxxxxx]
Sent: Monday, October 16, 2017 12:51 PM
To: RPG programming on the IBM i (AS/400 and iSeries) <rpg400-l@xxxxxxxxxxxx>
Subject: Re: 2nd & 3rd parm on %dec()
Yes because not every expression that uses %dec() or the right hand side looks like:
fielda = %dec(fieldb)
What about those instances where %dec() is part of a more complex expression? I am sure you can conceive of one complex enough that the precision and scale of the result will not match that of %dec(). Also what
about:
evalh fielda = %dec(fieldb)
In this case the scale of fieldb needs to be larger than that of fielda or the evalh will be meaningless.
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.