rust/src/libextra/num
gifnksm 7d5c7b8083 extra: Add getter methods to extra::rational::Ratio
After merging 0ada7c7, user code have not been able to access to `Ratio`'s numerator and denominator fields.
In some algorithms, it is needed to get an rational number's numerator or denominator, but keeping these fields private is necessary for guaranteeing that `Ratio` numbers are irreducible.
So, I added the getter methods `numer()` and `denom()`.

As a bonus, this commit adds utility methods relating to the ratio-integer conversion.
2013-10-24 23:05:03 +09:00
..
bigint.rs Removed Unnecessary comments and white spaces #4386 2013-10-23 01:10:50 +05:30
complex.rs Removed unnecessary comments and white spaces as suggested 2013-10-23 01:10:50 +05:30
rational.rs extra: Add getter methods to extra::rational::Ratio 2013-10-24 23:05:03 +09:00