Java Decimal Format getDoubleDecimalNumber(double d)

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

Description

get Double Decimal Number

License

Open Source License

Declaration

public static String getDoubleDecimalNumber(double d) 

Method Source Code

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

import java.text.DecimalFormat;

public class Main {
    private static DecimalFormat decimalFormat = new DecimalFormat("0.00");

    public static String getDoubleDecimalNumber(double d) {
        return decimalFormat.format(d);
    }/*from w  w  w  .  j  av a 2s . c om*/
}

Related

  1. getDecimalFormatter()
  2. getDecimalFormatter(int scale)
  3. getDigitNumber(double p)
  4. getDoubleAsString(double value)
  5. getDoubleByNumeric(String valorTexto)
  6. getDoubledigit(double f)
  7. getDoubleForDisplay(Double d)
  8. getDoubleFromTaxSet(String taxSetValue)
  9. getDoubleWithTwoDecimalDigits(double value)