× 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.



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.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.