What does it mean that the server returns 0E-10 in android?

1. See the picture below. The server returns 0E-10, converted to entity class is 0.0
insert image description here
2. But we can verify it ourselves.

  BigDecimal b1 = new BigDecimal("0.0000000000");
  Log.d("111333","请求数据--------------------------我在这里测试返回来的数据,b1="+b1);

The print log is as follows
insert image description here
: 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

Guess you like

Origin blog.csdn.net/qq_36570506/article/details/130166252