获取目前的小数位数
static int getValueDigit(String value) { if (value.contains(".")) { return value.split(".")[1].length; } else { return -1; } }