On Tuesday 10 July 2012 19:12:45 andy pugh did opine:

> On 9 July 2012 16:35, Gene Heskett <[email protected]> wrote:
> > After it failed, I put some (debug, print vars) in
> > it and found it seems to be prematurely exiting that first 'while'
> > when the x_dec var is still around .020".
> 
> Not here. It runs through the while loop until x_div = 15, so that
> looks like 15 iterations of the loop.
> 
> Incidentally, I suspect you could get the same result using the FUP[]
> function: #<_x_div> = [ FUP[ #<_total_cut> / 0.015 ]]
> #<_x_dec> = [#<_total_cut> / #<_x_div>]

Andy;  This works well for the first cut size but not so well for the next 
section of the shaft that is about .1  larger, so that while, I assume due 
to rounding, skips the gt (or ge, same results, it overshoots one pass 
either way) test in the second while and does an extra pass, cutting it one 
passes worth under size.  Would it do to set the allowable number of 
decimal places it checks for only in the while statement, and if so how?, 
as I don't see a function to clip off everything to the right of the third 
pound sign in a .### formatted variable. Or, should I also decrement the 
x_div, and exit when it has been reduced to 0?

Thanks.

Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://coyoteden.dyndns-free.com:85/gene> is up!
If the grass is greener on other side of fence, consider what may be
fertilizing it.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to