mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
typo
This commit is contained in:
@@ -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’s a true truncate function, not a a floor function.
|
||||
<li>The <code>int()</code> function truncates negative numbers towards 0. It’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>
|
||||
|
||||
Reference in New Issue
Block a user