<div dir="ltr"><div><font size="4" face="garamond, serif">Dear Python Developers:</font><div style="font-size:12.8000001907349px"><font size="4" face="garamond, serif"><br>I will be presenting a modification to the float class, which will improve its speed and accuracy (reduce floating point errors). This is applicable because Python uses a numerator and denominator rather than a sign and mantissa to represent floats.</font></div><div style="font-size:12.8000001907349px"><font size="4" face="garamond, serif"><br>First, I propose that a float's integer ratio should be accurate. For example, <span style="background-color:rgb(204,204,204)">(1 / 3).as_integer_ratio()</span> should return <span style="background-color:rgb(204,204,204)">(1, 3)</span>. Instead, it returns<span style="background-color:rgb(204,204,204)">(6004799503160661, 18014398509481984).</span></font><div><font size="4" face="garamond, serif"><br>Second of all, even though 1 * 3 = 3 (last example), 6004799503160661 * 3 does not equal 18014398509481984. Instead, it equals 1801439850948198<b>*3*</b>, one less than the value in the ratio. This means the rati</font><font size="4" face="garamond, serif">o is inaccurate</font><span style="font-family:garamond,serif;font-size:large">, as well as completely not simplified.</span></div><div><span style="font-family:garamond,serif;font-size:large"><br></span></div><div><span style="font-family:garamond,serif;font-size:large"><br></span></div><div><img src="cid:ii_14daab66b0484355" alt="Inline image 1" width="558" height="136" class="" tabindex="0" style="font-family: garamond, serif; font-size: large; margin-right: 0px;"><div class="" dir="ltr"><div id=":18u" class="" tabindex="0"><div class=""></div></div><div id=":18v" class="" tabindex="0"><div class=""></div></div></div></div><div><font size="4" face="garamond, serif"><br></font></div><div><font size="4" face="garamond, serif"><br>Even if the value displa</font><font size="4" face="garamond, serif">yed for a float is a rounded</font><span style="font-family:garamond,serif;font-size:large"> value, the internal numerator and denominator should divide to equal to completely accurate value.</span></div></div><div style="font-size:12.8000001907349px"><span style="font-family:garamond,serif;font-size:large"><br></span></div><div style="font-size:12.8000001907349px"><span style="font-family:garamond,serif;font-size:large">Thanks for considering this improvement!</span></div><div style="font-size:12.8000001907349px"><span style="font-family:garamond,serif;font-size:large"><br></span></div><div style="font-size:12.8000001907349px"><span style="font-family:garamond,serif;font-size:large">Sincerely,</span></div><div><font face="garamond, serif" size="4">u8y7541</font></div></div>
</div>