How to fix NumberFormatException for input string "0.40" : <p>i am trying to convert string value to long for further processing but this error occurs everytime    </p>

<pre><code>13-Feb-2019 13:15:35.593 SEVERE [http-nio-8084-exec-570] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() 
     java.lang.NumberFormatException: For input string: "0.40"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Long.parseLong(Long.java:589)
        at java.lang.Long.parseLong(Long.java:631)
</code></pre>
