This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Leengit
Recipients Leengit, mark.dickinson, rhettinger, serhiy.storchaka, zach.ware
Date 2022-02-17.18:40:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1645123204.07.0.178037638926.issue46780@roundup.psfhosted.org>
In-reply-to
Content
>This sounds interesting, but also rather similar to what the `limit_denominator` method can get you. 

`Fractions("0.17").limit_denominator()` and `Fractions("0.17").limit_denominator(n)`
for n > 28 do not give 1/6.  So, I'd have to guess at n until I get 1/6.  Instead, I'd like to have the digits actually presented "0.17" determine the interval [0.165, 0.175) which then determines the fraction.

In particular, "0.170" would give a different answer ... a fraction within [0.1695, 0.1705).
History
Date User Action Args
2022-02-17 18:40:04Leengitsetrecipients: + Leengit, rhettinger, mark.dickinson, zach.ware, serhiy.storchaka
2022-02-17 18:40:04Leengitsetmessageid: <1645123204.07.0.178037638926.issue46780@roundup.psfhosted.org>
2022-02-17 18:40:04Leengitlinkissue46780 messages
2022-02-17 18:40:04Leengitcreate