- Sample
NumberFormat nf = NumberFormat.getNumberInstance();
nf.setMinimumFractionDigits(9);
nf.setGroupingUsed(false);

nf.format((double)228588.0/(double)1000000000.0);

- Result
0.000228588

'java > util' 카테고리의 다른 글

Calendar, SimpleDateFormat 사용하자  (0) 2010.06.28
[replaceAll] - 문자열 치환  (0) 2010.06.28
[정규식] - Pattern 을 사용한 Validate  (0) 2010.06.25
[정규식] - 한글 검사  (0) 2010.06.25
[정규식] - 초성 검사  (0) 2010.06.25
Posted by 짱가쟁이