java disable scientific notation

Disable scientific notation

NUM = 80,000,000,000.000001 Double ; 
System.out.println ( "default notation: NUM =" + NUM); 

the NumberFormat of NF = NumberFormat.getInstance (); 
nf.setGroupingUsed ( false ); // no scientific count 
System.out.println ( "disable scientific notation: num =" + nf.format (num ));

 

Guess you like

Origin www.cnblogs.com/zhzhlong/p/11365836.html