Java Decimal Format getStandardDouble(double d, int pL)

Here you can find the source of getStandardDouble(double d, int pL)

Description

get Standard Double

License

Open Source License

Parameter

Parameter Description
d a parameter
pL a parameter

Declaration

public static String getStandardDouble(double d, int pL) 

Method Source Code

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

import java.text.DecimalFormat;

public class Main {
    /**/*from   w  ww . j  a  va2  s  .  c  o m*/
     * @param d
     * @param pL
     * @return
     */
    public static String getStandardDouble(double d, int pL) {
        String format = "0.";
        for (int i = 0; i < pL; i++)
            format += "0";
        return ((new DecimalFormat(format)).format(d));
    }
}

Related

  1. getRealEye(double eye)
  2. getRedondeoHaciaArriba(double pTotal)
  3. getScientificNotation(double value)
  4. getSpaceMessage(final double bytes)
  5. getStandardDeviationString(double[] standardDeviationDoubles)
  6. getString(Double d)
  7. getStringFromDouble(double number)
  8. getStringRepresentationForDouble(double value)
  9. getTwoPoint(double val)