Java Decimal Format getTwoPoint(double val)

Here you can find the source of getTwoPoint(double val)

Description

get Two Point

License

LGPL

Declaration

public static String getTwoPoint(double val) 

Method Source Code


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

import java.text.DecimalFormat;

public class Main {
    public static String getTwoPoint(double val) {
        DecimalFormat nf = new DecimalFormat("0.00");
        return nf.format(val);
    }/*from   www .  ja v  a  2  s. c  o  m*/
}

Related

  1. getStandardDeviationString(double[] standardDeviationDoubles)
  2. getStandardDouble(double d, int pL)
  3. getString(Double d)
  4. getStringFromDouble(double number)
  5. getStringRepresentationForDouble(double value)
  6. getValue(double value)
  7. isDouble(String _str)
  8. isLikelyDouble(long value)
  9. isprime(double x)