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



It worries me when I see these kinds of precision expected in what appears to be fairly large number.

It looks like minutes are being divided by 60 to give fractional hours, and then the number of calls are being divided by that answer? Would it make more accuracy to do the math the other way around? Divide the calls by the big number, and then convert that by dividing by 60? Or divide in the other direction and give an answer of average minutes/call?



Sharon Wintermute wrote:
When you do it this way, it does not adjust the time/60, it will use the entire
result. so 40/60 will use .6666666666667 out to some signficance I don't
remember.
We do it this way in order to get the "most" out of the calculation before we
adjust the final number.

-----Original Message-----
From: Sharon Wintermute Sent: Monday, April 09, 2007 1:34 PM
To: 'RPG programming on the AS400 / iSeries'
Subject: RE: translation in /free??


I would manually translate it to
eval(h) @callshr = @Calls / (@time / 60);
The half adjust works fine this way.
It will adjust based on the definition of @CallShr.

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Jay Vaughn
Sent: Monday, April 09, 2007 1:22 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: translation in /free??


@TIME DIV(H) 60 WKHRMN 5 2 @CALLS DIV(H) WKHRMN @CALLSHR


How would this be translated to /free? From what I understand, %DIV does not support decimals. Also there is the issue with the "half adjust"...

Thanks,
Jay Vaughn
iSeries Senior Programmer/Analyst
RateWatch
jayv@xxxxxxxxxxxxxx
251-633-8929


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.