Java Double Number to String doubleToString(double d)

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

Description

double To String

License

Open Source License

Declaration

public static String doubleToString(double d) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.text.DecimalFormat;

public class Main {

    public static String doubleToString(double d) {
        String i = DecimalFormat.getInstance().format(d);
        String result = i.replaceAll(",", "");
        return result;

    }//  w  ww .  ja v a  2  s.com
}

Related

  1. doubleToScientificString(double number, int fractionDigits)
  2. doubleToStr(double d)
  3. doubleToStr(double origin, int decimals)
  4. doubleToStr1(double d)
  5. doubleToStrFormatado(Double valor)
  6. doubleToString(double d, int df)
  7. doubleToString(double d, int precision)
  8. doubleToString(Double d, String format)
  9. doubleToString(double dnum)