Java 科学计数法数字转字符串

科学计数法数字转字符串,记录代码,留后使用 double dd = 1.00012E5;String s = String.valueOf(dd);BigDecimal db = new BigDecimal(s);s = db.toPlainString();if (s != null) { if (s.endsWith(".0")) { s = s.substring(0, s.length
相关文章
相关标签/搜索