On Mar 2, 2011, at 3:26 PM, rpg400-l-request@xxxxxxxxxxxx wrote:

As I indicated, the %dec bif requires that the length and decimals be known at
compile time.
The values for the data I am converting are only known at run time.

You are mis-understanding the function of those values. They specify the precision of the _output_ of the BIF. _Not_ the format of the input.

Simple specify those values to be the largest you would ever want an %Dec will do it for you. No need to make life any more complicated than that.


Jon Paris


This thread ...


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

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.