<span style="font-family: courier new,monospace;">def float_to_exact_number_stored_in_computer(f):</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> """</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> Given a float, return the exact number stored in computer</span>.<br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> See <a href="http://docs.python.org/3.1/tutorial/floatingpoint.html#representation-error">http://docs.python.org/3.1/tutorial/floatingpoint.html#representation-error</a></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> """</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> from decimal import Decimal</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> return Decimal.from_float(f)<br><br>I've just borrowed from the doc, but that name is too long, isn't it? Please suggest something shorter but still meaningful. <br>
<br>Thanks,<br><br>Dick Moores<br></span>