title: Convert double to float in Java
body: <p>I am facing an issue related to converting <code>double</code> to <code>float</code>. Actually, I store a float type, <code>23423424666767</code>, in a database, but when we get data from the database in the below code, <code>getInfoValueNumeric()</code>, it's of <code>double</code> type. The value we get is in the <code>2.3423424666767E13</code> form.</p>
  
  <p>So how do we get a <code>float</code> format data like <code>23423424666767</code>?</p>
  
  <p><code>2.3423424666767E13 to 23423424666767</code></p>
  
  <pre><code>public void setInfoValueNumeric(java.lang.Double value) {
      setValue(4, value);
  }
  
  
  @javax.persistence.Column(name = "InfoValueNumeric", precision = 53)
  public java.lang.Double getInfoValueNumeric() {
      return (java.lang.Double) getValue(4);
  }
  </code></pre>