This commit is contained in:
Mark Pilgrim
2009-09-17 17:51:33 -04:00
parent ba36b17ae0
commit 9c21653c7d
+1 -1
View File
@@ -105,7 +105,7 @@ ZeroDivisionError: int division or modulo by zero</samp></pre>
<li>You can explicitly coerce an <code>int</code> to a <code>float</code> by calling the <code>float()</code> function.
<li>Unsurprisingly, you can also coerce a <code>float</code> to an <code>int</code> by calling <code>int()</code>.
<li>The <code>int()</code> function will truncate, not round.
<li>The <code>int()</code> function truncates negative numbers towards 0. It&#8217;s a true truncate function, not a a floor function.
<li>The <code>int()</code> function truncates negative numbers towards 0. It&#8217;s a true truncate function, not a floor function.
<li>Floating point numbers are accurate to 15 decimal places.
<li>Integers can be arbitrarily large.
</ol>