Java Decimal Format toString(double d)

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

Description

to String

License

LGPL

Declaration

public static String toString(double d) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.text.DecimalFormat;
import java.text.NumberFormat;

public class Main {
    private static NumberFormat SIMPLE_ORDINATE_FORMAT = new DecimalFormat("0.#");

    public static String toString(double d) {
        return SIMPLE_ORDINATE_FORMAT.format(d);
    }/*from w ww  .  j  av a2  s.  co m*/
}

Related

  1. toParse(double d)
  2. toPrecision(double I, int digits1, int digits2)
  3. toScientific(double I, int digits)
  4. toSplitDecimalString(Double num, int decimal)
  5. toStockPrice(double value)
  6. toString(double d)
  7. toString(double d, int precision)
  8. toString(double value)
  9. toString(double value)