This code (which I didn't write) occasionally prints an error like 'price: 7.949999809265137java.lang.NumberFormatException: For input string: ".795E1795E1"'
Could you post an example that ALWAYS gets the error? In other words, write some sample code that sets the value of price to cause the error. Then run that simple program and copy/paste all of the output here.