double value 0.0001 will converto 1.0E-4 while inserting into database
问题 I would like to pass the double value received from web page to sqlServer database. the value are wrapped in a value object. public class testVO{ Double value; public Double getValue() { return value; } public void setValue(Double value) { this.value = value; } } However, the problem I've met is when the value is smaller than 0.0001, it will transfer into 1.0E-4 or other scientific-notation, which causes the database error. The way I found is to use BigDecimal.valueOf(testVO.getValue()) to