title: jQuery Input Mask Decimal point
body: <p>I am using the jQuery plugin found at <a href="https://github.com/RobinHerbots/jquery.inputmask" rel="nofollow">https://github.com/RobinHerbots/jquery.inputmask</a> but I can't seem to be able to derive a pattern that corresponds to a integer &amp; a decimal. For example, </p>
  
  <p>I need the following to be valid:</p>
  
  <pre><code>      10
        150
        12.25
        0.45
  </code></pre>
  
  <p>At the moment I am doing:</p>
  
  <pre><code>$('#from_id').inputmask("9{0,5}.9{0,2}");
  </code></pre>
  
  <p>But this means that if the user does not specify what comes after the decimal point, the resulting output is:</p>
  
  <p>For example, if the user only wants to input 12 (and he does not specify the decimal point) the output is</p>
  
  <pre><code>12___.__
  </code></pre>
  
  <p>(as the mask is waiting for the decimal point)</p>
  
  <p>But if the user specifies the decimal point, for example 12.00, The output is fine like:</p>
  
  <pre><code>12.00 
  </code></pre>
  
  <p>Could someone help me with this problem?</p>