Java Decimal Format getDoubleWithTwoDecimalDigits(double value)

Here you can find the source of getDoubleWithTwoDecimalDigits(double value)

Description

get Double With Two Decimal Digits

License

Open Source License

Declaration

public static double getDoubleWithTwoDecimalDigits(double value) 

Method Source Code

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

import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;

import java.util.Locale;

public class Main {
    public static double getDoubleWithTwoDecimalDigits(double value) {
        DecimalFormat df = new DecimalFormat("0.00", new DecimalFormatSymbols(Locale.US));
        return Double.valueOf(df.format(value));
    }//from www.jav a2  s. co m
}

Related

  1. getDoubleByNumeric(String valorTexto)
  2. getDoubleDecimalNumber(double d)
  3. getDoubledigit(double f)
  4. getDoubleForDisplay(Double d)
  5. getDoubleFromTaxSet(String taxSetValue)
  6. getDurationString(double duration)
  7. getEngineeringNotation(final double d)
  8. getInteger(Double d)
  9. getIntNum(Double value)