Anonymous user
Boston Python Workshop 3/Friday/Tutorial: Difference between revisions
Boston Python Workshop 3/Friday/Tutorial (view source)
Revision as of 02:29, 17 June 2011
, 12 years ago→Division
imported>Jesstess |
imported>Jesstess |
||
Line 47:
</pre>
Hey now! That last result is probably not what you expected. What's going on here is that integer divison produces an integer. You need a number that knows about the decimal point to get a decimal out of division:
<pre>
|