java add value to the thousandth.

. 1  Private  static String nuber ( Double n-) {
 2          // the TODO Auto-Generated Method Stub 
. 3          String = DecimalFormat.getNumberInstance STR () the format (n-);. // The accuracy of the method to retain only three decimal places 
. 4          return STR;
 . 5 }

 

Guess you like

Origin www.cnblogs.com/mengweihong/p/11305173.html