double 지수 표현 제거

Language/JAVA 2013. 11. 13. 17:27

import java.text.NumberFormat;


public class numberFormat {


public static void main(String[] args) {

// TODO Auto-generated method stub

double num = 1.2345E2;

NumberFormat f = NumberFormat.getInstance();

f.setGroupingUsed(false);

String val = f.format(num);

System.out.println(val);

}


}

: