<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, May 31, 2015 at 8:14 PM,  <span dir="ltr"><<a href="mailto:random832@fastmail.us" target="_blank">random832@fastmail.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Even though he's mistaken about the core premise, I do think there's a<br>
kernel of a good idea here - it would be nice to have a method (maybe<br>
as_integer_ratio, maybe with some parameter added, maybe a different<br>
method) to return with the smallest denominator that would result in<br>
exactly the original float if divided out, rather than merely the<br>
smallest power of two.<br></blockquote><div><br></div><div>What is the computational complexity of a hypothetical float.as_simplest_integer_ratio() method?  How hard that is to find is not obvious to me (probably it should be, but I'm not sure).</div></div><div><br></div>-- <br><div class="gmail_signature">Keeping medicines from the bloodstreams of the sick; food <br>from the bellies of the hungry; books from the hands of the <br>uneducated; technology from the underdeveloped; and putting <br>advocates of freedom in prisons.  Intellectual property is<br>to the 21st century what the slave trade was to the 16th.<br></div>
</div></div>