If original_weight = 3.00 won't this result in 4.00? How about doing
this test first:

If original_weight - %int(original_weight) > *Zero;
new_weight = %int(original_weight) +1;
EndIf;

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Francis Lapeyre
Sent: Monday, May 19, 2008 3:36 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: Technique for rounding up

new_weight = %int(original_weight) +1;

On Mon, May 19, 2008 at 3:21 PM, Adam West <adamster@xxxxxxxxx> wrote:
HI What is a good way to round up a part that has the weight, for
shipping
purposes? Because when actually packed for UPS there is that extra
packing
box, etc.



This thread ...

Replies:

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.