title: How do you isolate the digits following a decimal in R?
body: <p>For example: I have the number 123.456 and want to return 456.</p>
  
  <p>The function <code>trunc()</code> basically isolates (<a href="http://127.0.0.1:19420/library/base/html/Round.html" rel="nofollow">truncates</a>) the numbers <em>before</em> the decimal.</p>
  
  <p><strong>Is there a function to isolate just the digits <em>after</em> the decimal?</strong></p>
  
  <p>Two follow-up questions:</p>
  
  <ol>
  <li><p>Is there a way to do this without writing out the regex? </p></li>
  <li><p>What if I want to maintain the sign? For example, if I wanted to (reverse) truncate -123.456 to -456.</p></li>
  </ol>