title: Jackson Mapper integer from json parsed as double with drong precision
body: <p>Greeting.
  I had a working solution, but after making a multiple changes on project it doesn't work anymore.</p>
  
  <p>The problem:
  Front-end sending integer value <code>565656</code> which is an attribute of the object converted by Jackson <code>ObjectMapper</code>. i need to get a double with precision 2 from this integer value.</p>
  
  <p>This is the java model:</p>
  
  <pre><code>public class Item {
  
      private int condoId;
      private Integer itemId;
      private String owner;
  
      @NotNull
      @Size(min=1, max=60)
      private String itemTitle;
  
      @NotNull
      @Size(min=1, max=1000)
      private String itemDescr;
  
      @NotNull
      @Size(min=1, max=45)
      private String itemEmail;
  
      @NotNull
      @Size(min=1, max=16)
      private Double itemPrice;
  }
  </code></pre>
  
  <p>Was working before:</p>
  
  <pre><code>import com.fasterxml.jackson.databind.JsonNode;
  import com.fasterxml.jackson.databind.ObjectMapper;
  
      *In controller, received a request data as string data*
  
               ObjectMapper mapper = new ObjectMapper();
               JsonNode node = null;
               node = mapper.readTree(data);
               Item item = mapper.convertValue(node.get("item"), Item.class);
              NumberFormat formatter = new DecimalFormat(".00");
              item.setItemPrice(Double.parseDouble(formatter.format(item.getItemPrice())));
  </code></pre>
  
  <p>Now this solution giving me wrongly formatted  values (like <code>5.67657654E8</code>) from <code>567657654</code>.
  What is the way to convert the received integer attribute to the required double?</p>
  
  <p>PS. in <code>PostgreSQL</code> DB it is stored as <code>numeric(10,2)</code>.</p>
  
  <p><strong>EDIT:</strong>
  probably the right question is - why the received <code>int 567657654</code>  from json POST data is deserialized to <code>double</code> <code>5.67657654E8</code>, which is a "solid" 5 + decimal <code>.67657654E8</code></p>