title: Converting last n digits of a number to Zero
body: <p>What is the best way to replace the last digits of a number to zero keeping first three digits as it is, in python?</p>
  
  <p>Example: </p>
  
  <pre><code>23456789 -&gt; 23400000
  112022 -&gt; 112000
  1111-&gt; 1110
  111 -&gt; 111 (no conversion)
  </code></pre>