(12C) Decimal to Fraction
|
08-09-2018, 12:11 AM
Post: #22
|
|||
|
|||
RE: (12C) Decimal to Fraction
(08-08-2018 10:26 PM)Albert Chan Wrote: dec2frac(2.0, 10) crashes with ZeroDivisionError. "if c < 2 and" should be "if c < 2 or" Nah, Joe is of course correct: Code: \<< DUP2 @ Must be two arguments. Exit now if max denominator < 2, It's only me that should study De Morgan's laws. Quote:Although not a bug in Python, when code running in a calculator, v can be huge. Not sure if I understand that correctly but that's something Joe might want to change in his RPL program as well. So this is rather a "jump forwards"? Thanks for the feedback Thomas |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)