title: "Trim" right zeroes from integral type
body: <p>How to fast remove trailing zeroes from an integer NOT using strings?</p>
  
  <p>For example, <code>1000</code> must become <code>1</code>, <code>6789000</code> must become <code>6789</code>.</p>
  
  <p>Easy solution is repeatedly taking modulo of division by <code>10^max_exponent</code>, ..., <code>10000</code>, <code>1000</code>, <code>100</code>, <code>10</code> (or in reverse order) and so on and comparing it to <code>0</code>. </p>
  
  <p>But can someone do it faster?</p>