Java Double Number Format doubleFormat(double d)

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

Description

double Format

License

Apache License

Declaration

public static String doubleFormat(double d) 

Method Source Code


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

import java.text.DecimalFormat;

public class Main {
    public static String doubleFormat(double d) {
        DecimalFormat df = new DecimalFormat("#########.###");
        return df.format(d);
    }//from   w  ww  . jav  a2s.c om
}

Related

  1. convertDouble(double damage)
  2. doubleFormat(Double d)
  3. doubleFormat(double number)
  4. doubleFormat(double val, boolean hiRes)
  5. format(double b)