title: Determine the decimal precision of an input number
body: <p>We have an interesting problem were we need to determine the decimal precision of a users input (textbox). Essentially we need to know the number of decimal places entered and then return a precision number, this is best illustrated with examples:</p>
  
  <p>4500 entered will yield a result 1<br>
  4500.1 entered will yield a result 0.1<br>
  4500.00 entered will yield a result 0.01<br>
  4500.450 entered will yield a result 0.001  </p>
  
  <p>We are thinking to work with the string, finding the decimal separator and then calculating the result. Just wondering if there is an easier solution to this.</p>