title: Rounding of variables
body: <p>I have the following code:</p>
  
  <pre><code>x=4200/820
  </code></pre>
  
  <p>It should return <code>x=5.12</code> but it gives <code>x=5</code>. How can I change this. Thanks</p>
  
  <p>EDIT:
  If instead I had this code:</p>
  
  <pre><code>x=(z-min(z_levels))/(max(z_levels)-min(z_levels))
  </code></pre>
  
  <p>Where <code>z, min(z_levels) and max(z_levels)</code> are values that change in a for loop taken from a list.
  How can I make <code>x</code> a float? Do I need to change the code like this:?</p>
  
  <pre><code>x=float(z-min(z_levels))/float(max(z_levels)-min(z_levels))
  </code></pre>