Re: [wp34s] E24 macro Message #12 Posted by Didier Lachieze on 21 June 2013, 3:34 a.m., in response to message #11 by Paul Dale
Yes and with a few other optimizations this gives:
x>? Y
SKIP 004
x[<->] .02 // Recall Upper value & Drop Threshold
INC .00
INC .00
GTO 01 // Next parameter
[<->] ZTTT // Drop threshold & mantissa
DEC X
10[^x]
RCL[times] .01 // Recall rounded mantissa & multiply
END // Program Separator
(5 steps less than initial code)
And by moving the STO .01 just after the LBL 01 we can save another step:
LBL 01
STO .01
CASE .00
[...]
LBL 00 // ROUND
STO .02
+
# 020
/
Edited: 21 June 2013, 3:56 a.m.
|