DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29294>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29294

[lang][PATCH] lang.math.Fraction class deficiencies





------- Additional Comments From [EMAIL PROTECTED]  2004-07-05 13:26 -------
I am attaching a patch that fixes the numerical problems identified in this bug,
but does not change the public API or semantics.  Other than more rigorous
handling of overflows and better numerics, the only behavior change is that
pow(int) returns a fraction in reduced form. All improvements are from patches
submitted earlier by C. Scott Ananian.

I agree with Scott that keeping fractions in non-reduced form is less efficient
and more prone to overflows. I also do not see practical use cases for
maintaining the distinction (non-equality) between equivalent fractions.  The
2.0-released version of the class does this, however, so (in agreement with
Stephen) I think we need to keep the current semantics. 

If there are no objections, after one more review and adding a few more test
cases, I will commit this patch (labelled "consolidated bug fixes").

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to