java中将科学计数法转换普通计数法(2)

String a = "11234567.89" ;
 
BigDecimal db = new BigDecimal(a);
 
System.out.println( "科学计数:" + db.toString());
 
System.out.println( "普通计数:" + db.toPlainString());

本文转载自:https://blog.csdn.net/ws379374000/article/details/79530968?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.baidujs&dist_request_id=&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.baidujs

你可能感兴趣的:(java中将科学计数法转换普通计数法(2))