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



rob@xxxxxxxxx wrote:
> 
> Which makes me wonder.  If you have a constant in your program, and this
> program may be shipped to several countries, and there may be a decimal in
> it, how should one format it?  For example, instead of
> D Pi      C   3.14
> Should one do
> D Pi      s              inz(3 + 14/100)
> Or should one just always have a DECEDIT hspec?
> 

The RPG compiler allows either period or comma as the decimal separator,
interchangeably.  You could code this:
      eval   x = 1.5 + 1,5

The DECEDIT hspec keyword only controls editing at runtime.  Use
DECEDIT(*JOBRUN) if you want it to use the job formatting values.


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.