Author mark.dickinson
Recipients Rhamphoryncus, eric.smith, mark.dickinson, skrah
Date 2010-03-27.11:49:19
SpamBayes Score 0.0106561
Marked as misclassified No
Message-id <1269690569.11.0.448069350946.issue8188@psf.upfronthosting.co.za>
In-reply-to
Content
Here's a version of the patch that adds exact comparisons between the various numeric types.  The only slightly tricky comparison is the Fraction <-> Decimal one:  an obvious strategy is to convert the Decimal exactly to a Fraction and then use the fraction comparison, but this is inefficient for Decimal instances with large exponent.  So instead, we compare a Decimal `x` with a Fraction `n/d` by comparing `x*d` with `n` in the Decimal domain.
History
Date User Action Args
2010-03-27 11:49:29mark.dickinsonsetrecipients: + mark.dickinson, Rhamphoryncus, eric.smith, skrah
2010-03-27 11:49:29mark.dickinsonsetmessageid: <1269690569.11.0.448069350946.issue8188@psf.upfronthosting.co.za>
2010-03-27 11:49:27mark.dickinsonlinkissue8188 messages
2010-03-27 11:49:27mark.dickinsoncreate