<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Fixed-point arithmetic - Page 18 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=fixed-point_arithmetic&amp;p=17">1.Previous</a><br />
<a accesskey="3" href="page.php?w=fixed-point_arithmetic&amp;p=19">3.Next</a>
</p>
<p>17/32 (0.53125).</p>

<p>More generally, a <a href="page.php?w=rational_number">rational number</a> a/b, with a and b <a href="page.php?w=relatively_prime">relatively prime</a> and b positive, can be exactly represented in binary fixed point only if b is a power of 2; and in decimal fixed point only if b has no <a href="page.php?w=prime">prime</a> factors other than 2 or 5.</p>

<p><big>Comparison with floating-point</big></p>
<p>Fixed-point computations can be faster or use less hardware than floating-point ones.  If the range of the values to be represented</p><p>
<a accesskey="1" href="page.php?w=fixed-point_arithmetic&amp;p=17">1.Previous</a><br />
<a accesskey="3" href="page.php?w=fixed-point_arithmetic&amp;p=19">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
