Message413442
> I'd modify the optimization to be that we continue to seek the smallest denominator, but in the case that multiple numerators would give ratios within the computed interval then we choose the numerator among these that gives the ratio closest to the input value.
Hmm. This is getting more DWIM-like (Do What I Mean) by the minute. :-)
What about for an input of "0.001"? Your current specification would give 1/667, but I'm betting that you'd actually prefer 1/1000. |
|
Date |
User |
Action |
Args |
2022-02-17 19:08:20 | mark.dickinson | set | recipients:
+ mark.dickinson, rhettinger, zach.ware, serhiy.storchaka, Leengit |
2022-02-17 19:08:20 | mark.dickinson | set | messageid: <1645124900.26.0.851176175687.issue46780@roundup.psfhosted.org> |
2022-02-17 19:08:20 | mark.dickinson | link | issue46780 messages |
2022-02-17 19:08:20 | mark.dickinson | create | |
|