Open msalib opened 2 years ago
FWIW, I would suggest creating a uniform method/trait to approximate numbers (as I proposed in #100), which should work for both float to rational and rational to rational conversions.
I appreciate that you cited your source, but I'm also uncomfortable with the license implications there. I think language translations do still generally count as derived works. I'm not really sure what we need to do about that...
Python's
fractions
module in the standard library implements a rational type and provides a really handylimit_denominator
method. I've implemented it here along with some tests.This PR should address #99 .