title: python 2.7: round a float up to next even number
body: <p>I would like to round up a float to the next even number. </p>
  
  <p>Steps:</p>
  
  <p>1) check if a number is odd or even</p>
  
  <p>2) if odd, round up to next even number</p>
  
  <p>I have step 1 ready, a function which checks if a give number is even or not:</p>
  
  <pre><code>def is_even(num):
      if int(float(num) * 10) % 2 == 0:
          return "True"
      else:
          return "False"
  </code></pre>
  
  <p>but I'm struggling with step 2....</p>
  
  <p>Any advice?</p>
  
  <p>Note: all floats will be positive.</p>