Here you can find the source of doubleToStr1(double d)
public static String doubleToStr1(double d)
//package com.java2s; /**/*from w w w . j a v a 2 s . co m*/ * Copyright 2003 ZhongTian, Inc. All rights reserved. * * qingdao tec PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * $Id: DBUtil.java,v 1.1 2006/05/17 09:19:30 wiserd Exp $ * File:DBUtil.java * Date Author Changes * March 10 2003 wangdeliang Created */ public class Main { public static String doubleToStr1(double d) { java.text.DecimalFormat df = new java.text.DecimalFormat("###,###,###,##0.00"); return df.format(d); } }