truncate to 3 decimals in python
<p>Self explanatory, I want to get 1324343032.324</p>

<p>As you can see below, the following do not work:</p>

<pre><code>&gt;&gt;1324343032.324325235 * 1000 / 1000
1324343032.3243253
&gt;&gt;int(1324343032.324325235 * 1000) / 1000.0
1324343032.3239999
&gt;&gt;round(int(1324343032.324325235 * 1000) / 1000.0,3)
1324343032.3239999
&gt;&gt;str(1324343032.3239999)
'1324343032.32'
</code></pre>
