Casting float to int results in incorrect value
<p>The result variable will hold the value 9.0. Why then when I print using "%d" does print return 8?</p>

<pre><code>result = (((1.7526 % 0.3048) / 0.3048) * 12)
print(result)        #prints 9.0
print("%f" % result) #prints 9.0
print("%d" % result) #prints 8
</code></pre>
