Java Double Number to String doubleToString(Double d, String format)

Here you can find the source of doubleToString(Double d, String format)

Description

double To String

License

Open Source License

Declaration

public static final String doubleToString(Double d, String format) 

Method Source Code

//package com.java2s;

import java.text.DecimalFormat;

public class Main {

    public static final String doubleToString(Double d, String format) {
        DecimalFormat df = new DecimalFormat(format);
        return df.format(d);
    }/*from  w  ww .j  a  v a  2  s  .  c om*/
}

Related

  1. doubleToStr1(double d)
  2. doubleToStrFormatado(Double valor)
  3. doubleToString(double d)
  4. doubleToString(double d, int df)
  5. doubleToString(double d, int precision)
  6. doubleToString(double dnum)
  7. doubleToString(Double num)
  8. doubleToString(double val, int maxFractionDigits)
  9. doubleToString(double value)