title: Floor or Ceiling away from zero in Python
body: <p>Using Python 3, is there a more Pythonic way to floor/ceil as float away from zero than doing this:</p>
  
  <pre><code>import math
  
  def away_from_zero(x):
      if x &gt; 0:
          return int(math.ceil(x))
      else:
          return int(math.floor(x))
  </code></pre>
  
  <p>Is there a better (perhaps more elegant) way to get the nearest integer with greater absolute magnitude?</p>