Using arithmetic equations in Python
<p>is there a way to round the value down to the lowest integer for this?</p>

<pre><code>x = 5.5
z = 1

x -= z
</code></pre>

<p>x is just 4.5 in this case</p>

<p>but I want something like this</p>

<pre><code>x = int(x - z)
</code></pre>

<p>which produces x as 4 but i would like to use the '-='</p>

<p>is there a way?</p>

<p>You can also use a dedicated solution:</p>

<pre><code>import math
math.floor(x-z)
</code></pre>

<p>It will always give you lower integer value (in fact it will be a float type but with an integer value).</p>

<p>Note that for <code>round(0.7) == 1.0</code>!!</p>

python