title: Round integers to the nearest 10
body: <p>I am trying to round integers in python. I looked at the built-in round() function but it seems that that rounds floats. </p>
  
  <p>My goal is to round integers to the closest multiple of 10. i.e.: 5-> 10, 4-> 0, 95->100, etc.</p>
  
  <p>5 and higher should round up, 4 and lower should round down. </p>
  
  <p>This is the code I have that does this: </p>
  
  <pre><code>def round_int(x):
      last_dig = int(str(x)[-1])
      if last_dig &gt;= 5:
          x += 10
      return (x/10) * 10
  </code></pre>
  
  <p>Is this the best way to achieve what I want to achieve? Is there a built-in function that does this? Additionally, if this is the best way, is there anything wrong with the code that I missed in testing?</p>