× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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?

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.