i had a go at it.  This one converts up to 5 decimal places (you could probably mod it to do more, but then you get pretty close to the limits of float-based arithmetic, i think).<br><br>i was getting glitches, because of the known issue where 58/1000 comes out as 57.99999..  , so i have just added a tiny amount to each number to stop this.  <br>
<br>also, the one i have done here splits a number into whole and fractional parts, but it would be trivial to multiply the whole by the denominator to express the number as a vulgar fraction (3/2, etc)<br><br><br><br><br>
<br><br><div class="gmail_quote">On Fri, Dec 16, 2011 at 11:52 AM, Alexandre Torres Porres <span dir="ltr">&lt;<a href="mailto:porres@gmail.com">porres@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hi there, <div><br></div><div>Is there an external that converts decimal numbers to fractions, like 1.5 =&gt; 3 / 2 ?</div><div><br></div><div>I bet it&#39;s complicated to do it as a vanilla patch, right?</div><div><br></div>

<div>thanks</div><div>alex</div>
<br>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br>