Author jdemeyer
Recipients AVINASH MISHRA, jdemeyer, josh.r, ncoghlan, remi.lapeyre, ronaldoussoren, serhiy.storchaka, vstinner
Date 2019-08-04.20:47:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1564951649.87.0.0160893793181.issue35707@roundup.psfhosted.org>
In-reply-to
Content
> If we want to support other numerical types with loss in double rounding, the most reliable way is to represent them as fractions (x.as_integer_ratio() or (x.numerator, x.denominator))

See https://discuss.python.org/t/pep-3141-ratio-instead-of-numerator-denominator/2037/24?u=jdemeyer for a proposal to define __ratio__ for this.
History
Date User Action Args
2019-08-04 20:47:29jdemeyersetrecipients: + jdemeyer, ronaldoussoren, ncoghlan, vstinner, serhiy.storchaka, josh.r, remi.lapeyre, AVINASH MISHRA
2019-08-04 20:47:29jdemeyersetmessageid: <1564951649.87.0.0160893793181.issue35707@roundup.psfhosted.org>
2019-08-04 20:47:29jdemeyerlinkissue35707 messages
2019-08-04 20:47:29jdemeyercreate