title: Decimal Formatting in Vue Framework
body: <p>I am new to Vue Framework. My requirement is to add money currency formatting in an input box.</p>
  
  <p>Formatting:<br>
  I need to add a decimal with two zeros on focus out and remove zero at focus in. The v-modal value should not change as this format is just for the user display.</p>
  
  <p>I found this solution which is quite close to my requirement: <a href="https://jsfiddle.net/mani04/w6oo9b6j" rel="noreferrer">https://jsfiddle.net/mani04/w6oo9b6j</a>. There are just two additional things I am not able to implement.</p>
  
  <p>I want to use it like:</p>
  
  <pre><code>&lt;my-currency-input id="test1" name="test2" v-model="price" v-validate="required|numeric” &gt;&lt;/my-currency-input&gt;
  </code></pre>
  
  <ol>
  <li>I have added vee-validate.js lib for validation for my whole form. So how can I use v-validate in this example?</li>
  <li>I don't want to round off my string. We just need to add and remove (.00) 
  Here, if user enters 35.7896 it is making it 35.79. For my requirement, it should remain 35.7896 as it is already having decimal. It should only add decimal when user enter a number.</li>
  </ol>
  
  <p>How can I do this? Should I use Vue directive for this?</p>
  
  <p><a href="https://jsfiddle.net/mani04/w6oo9b6j/" rel="noreferrer">https://jsfiddle.net/mani04/w6oo9b6j/</a></p>
  
  <p>Something like this I want</p>
  
  <pre><code>&lt;my-currency-input id="test1" name="test2" v-model="price" v-validate="required|numeric” &gt;&lt;/my-currency-input&gt;
  </code></pre>