title: Java, how to truncate digits in a long such in a way that mimics rounding?
body: <p>Imagine I have a long that's representing a price:</p>
  
  <pre><code>548880
  </code></pre>
  
  <p>Maybe this specifies a price like 54.8880.   The long form is used to transfer the data over the wire.</p>
  
  <p>I'd like to simply round the price to a given precision.  </p>
  
  <p>For example, <code>54.8880 --&gt; 54.89</code>, thus my final long becomes 548900.</p>
  
  <p>Is it possible to round the long directly in this manner, or would I have to recast long to <code>BigDecimal</code>, round, and then back to long?</p>