1. See the picture below. The server returns 0E-10, converted to entity class is 0.0
2. But we can verify it ourselves.
BigDecimal b1 = new BigDecimal("0.0000000000");
Log.d("111333","请求数据--------------------------我在这里测试返回来的数据,b1="+b1);
The print log is as follows
: 3. E indicates the number of digits after the decimal point. E-10 means there are 10 digits after the decimal point.
So 0E-10=0.0000000000, 1E-10=0.0000000001