(12C) Decimal to Fraction
|
08-09-2018, 03:39 PM
(This post was last modified: 08-09-2018 04:49 PM by Albert Chan.)
Post: #37
|
|||
|
|||
RE: (12C) Decimal to Fraction
I removed \(0 < x < 1\) restriction of farey fraction.
Code: >>> farey(0.10322, 1e8) # fractions match, stop Code: def farey(x, limit=100): |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)