Java Double Number to String doubleToStr1(double d)

Here you can find the source of doubleToStr1(double d)

Description

double To Str

License

Open Source License

Declaration

public static String doubleToStr1(double d) 

Method Source Code

//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);
    }
}

Related

  1. doubleToDollarString(double val)
  2. doubleToFixedString(double d, int length)
  3. doubleToScientificString(double number, int fractionDigits)
  4. doubleToStr(double d)
  5. doubleToStr(double origin, int decimals)
  6. doubleToStrFormatado(Double valor)
  7. doubleToString(double d)
  8. doubleToString(double d, int df)
  9. doubleToString(double d, int precision)