Does this go on an Eval statement? I like this way to remove the leading zeros,

--- On Thu, 8/21/08, jdavis@xxxxxxxx <jdavis@xxxxxxxx> wrote:

From: jdavis@xxxxxxxx <jdavis@xxxxxxxx>
Subject: Re: Best way to convert numeric with Decimals
To: "RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx>
Date: Thursday, August 21, 2008, 3:02 PM

I would code it the following way...

No leading zeros

PriceChar = %Replace('' :'.' :%Dec(Price))

Leading Zeros

PriceChar = %Replace('' :'.' :%EditC(Price :'X'))

Jeff Davis


The information contained in this communication is confidential, private,
proprietary, or otherwise privileged and is intended only for the use of the
addressee. Unauthorized use, disclosure, distribution or copying is strictly
prohibited and may be unlawful. If you have received this communication in
error, please notify the sender immediately at (312)653-6000 in Illinois;
(800)835-8699 in New Mexico; (918)560-3500 in Oklahoma; or (972)766-6900 in


This thread ...


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

This mailing list archive is Copyright 1997-2020 by 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].