Today I found that the data summarized in the database is a bit large, and as soon as the output is output, it is automatically converted into scientific notation. Later I found that there was a problem with the method of converting strings. as follows:
String a = "11234567.89";BigDecimal db = new BigDecimal(a);System.out.println("Scientific Count:" + db.toString());System.out.println("Normal Count:" + db.toPlainString());Output:
Scientific Count: 1.123456789E7
Normal count: 11234567.89
The simple method of converting scientific counting methods to ordinary counting methods in Java is all the content I share with you. I hope you can give you a reference and I hope you can support Wulin.com more.