double 지수 표현 제거
Language/JAVA 2013. 11. 13. 17:27import 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);
}
}
'Language > JAVA' 카테고리의 다른 글
tomcat7 cach filter (0) | 2013.12.03 |
---|---|
jdk7 file write (0) | 2013.11.14 |
POI를 이용한 Excel ( *.xls, *.xlsx ) 읽기 (0) | 2013.11.13 |
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. (0) | 2013.09.17 |
JAXB: Marshalling and Unmarshalling CDATA block using EclipseLink MOXy (0) | 2013.09.03 |