title: Round last digit integer to nearest 9
body: <p><strong>Set-up</strong></p>
  <p>I have a set of prices with decimals I want to end on the nearest <code>9</code>, where the cut-off point is <code>4</code>.</p>
  <p>E.g. <code>734</code> should be <code>729</code>, <code>734.1</code> should be <code>739</code> and <code>733.9</code> should be <code>729</code>.</p>
  <p>Prices can be single, double, triple, and quadruple digits with decimals.</p>
  <hr />
  <p><strong>Try</strong></p>
  <pre><code>if int(str(int(757.2))[-1]) &gt; 4:
      p = int(str(int(757.2))[:-1] + '9')
  </code></pre>
  <p>Now, this returns input price <code>757.2</code> as <code>759</code>, as desired. However, if the input price would be ending on a <code>3</code> and/or wouldn't be a triple-digit I wouldn't know how to account for it.</p>
  <p>Also, this approach seems rather cumbersome.</p>
  <p>Is there someone who knows how to fix this neatly?</p>