|
Hi James,
Thanks for the kind words. Thanks also to Jerry Adams for his
exceptionally kind words.
Does the %DECH() BIF do the same thing under the covers as EVAL(H)? I
would assume not, but I am curious if you know.
EVAL(H) tells RPG that you want to half-adjust the number when it's
assigned to the result (by "result", I mean the variable to the left of
the equal sign -- not the RPG "result field" which doesn't exist when
EVAL is used.)
%DECH tells RPG that you want to half-adjust the number when it's
assigned to an intermediate field. (One of those "under the covers"
fields I referred to in the previous message) At the same time, %DECH
also specifies the size of that result field. So with %DECH the
half-adjust can be done anywhere in the expression, not just as the
final step (with EVAL(H) it's always on the final step)
Is that what you're asking?
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
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.