by the way, here is the method i used:<br><br>first, convert the decimal part to a fraction in the form of n/100000 <br>next, find the highest common factor of n and 100000  <br>(using the &#39;division method&#39; like this:  <a href="http://easycalculation.com/what-is-hcf.php">http://easycalculation.com/what-is-hcf.php</a> )<br>
<br>then just divide n and 100000 by that factor.<br><br>actually, that means it&#39;s accurate to 6 decimal places, i guess.  well...whatever :D<br>