 <p>The <code>//</code> seems to be working correctly, </p> <p>See this <a href="http://www.tutorialspoint.com/python/python_basic_operators.htm" rel="nofollow">tutorial</a> on operators.</p> <blockquote> <p>// = Floor Division - The division of operands where the result is the quotient in which the digits after the decimal point are removed. 9//2 is equal to 4 and 9.0//2.0 is equal to 4.0</p> </blockquote> <p>for <code>4/2</code> to equal <code>2.0</code> you need to specify a float. For example : <code>4/float(2)</code> evaluates to <code>2.0</code>. The ints <code>4</code> and <code>2</code> are not already defined as <code>floats</code> when you divide. </p> <p>Hope it helps!</p>