<div dir="ltr"><div><div>FWIW, about a year ago I submitted rational module.  Here are the links:<br><br></div>source:  <a href="https://github.com/Arlen/phobos/blob/units/std/rational.d">https://github.com/Arlen/phobos/blob/units/std/rational.d</a><br>
</div><div>docs:  <a href="http://arlen.github.com/phobos/std_rational.html">http://arlen.github.com/phobos/std_rational.html</a><br></div><div>discussion:  <a href="http://forum.dlang.org/thread/mailman.579.1349545483.5162.digitalmars-d@puremagic.com">http://forum.dlang.org/thread/mailman.579.1349545483.5162.digitalmars-d@puremagic.com</a><br>
<br></div><div>I think we discussed the issue of BigInt and BigFloat.  Personally, I'm not a big fan of BigInt, and rational supporting it.<br><br></div><div>Anyway, I hope you find it useful.<br><br></div><div>Arlen<br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 25, 2013 at 11:57 AM, H. S. Teoh <span dir="ltr"><<a href="mailto:hsteoh@quickfur.ath.cx" target="_blank">hsteoh@quickfur.ath.cx</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Does anybody happen to have a working rational number library in D? Any<br>
plans to add that to Phobos at some point?<br>
<br>
Just wondering, because I'm working on some numerical code that would<br>
benefit from a custom number type that could be implemented in terms of<br>
rational numbers. I just don't feel like reinventing a rational library<br>
if one already exists. :)<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
T<br>
<br>
--<br>
GEEK = Gatherer of Extremely Enlightening Knowledge<br>
</font></span></blockquote></div><br></div>