title: How to store price in Mongodb
body: <p>I have a price in String format, price can contain decimal and integer both.
  like </p>
  
  <pre><code>String price ="100.00";
  String price ="100";
  String price ="100.123";
  </code></pre>
  
  <p>I want to store this in mongodb, as number(100) or just 100.23(not string).
  How to handle this in java as parsers are different for Integer and other format.</p>