Android Double Round convertDecimal(double d)

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

Description

convert Decimal

Declaration

public static String convertDecimal(double d) 

Method Source Code

//package com.java2s;

import java.text.DecimalFormat;

public class Main {
    public static String convertDecimal(double d) {
        DecimalFormat df = new DecimalFormat("#.0000");
        return df.format(d);
    }//w  w  w.jav a  2s. c  o  m
}

Related

  1. round(double d, int decimalPlace)
  2. round(double val, int numberOfDigitsAfterDecimal)
  3. round(double what, int howmuch)
  4. roundTwoDecimals(double d)
  5. round(double number, int decimal)
  6. twoDecimalDoubleFormatter(double number)