Java Parse Double parseDouble(Double data)

Here you can find the source of parseDouble(Double data)

Description

parse Double

License

Open Source License

Declaration

public static String parseDouble(Double data) 

Method Source Code

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

import java.text.DecimalFormat;
import java.text.NumberFormat;

public class Main {
    public static String parseDouble(Double data) {
        NumberFormat nf = new DecimalFormat("#,###");
        return nf.format(Math.round(data));
    }/*ww w .ja  v a 2  s.  c om*/
}

Related

  1. parseDouble(Object input)
  2. parseDouble(String d)
  3. parseDouble(String inStr)
  4. parseDouble(String s, Locale locale)