Java Fraction Format formatDouble(Object value)

Here you can find the source of formatDouble(Object value)

Description

format Double

License

Open Source License

Declaration

public static String formatDouble(Object value) 

Method Source Code

//package com.java2s;
//    it under the terms of the GNU General Public License as published by

import java.text.NumberFormat;

public class Main {
    public static String formatDouble(Object value) {
        NumberFormat doubleFormat = NumberFormat.getNumberInstance();

        return doubleFormat.format(((Number) value).doubleValue());
    }/* w  w  w .j a  v a 2 s  .  c  o  m*/
}

Related

  1. formatDouble(double value)
  2. formatDouble(double value)
  3. formatDouble(double value, int precision)
  4. FormatDouble(final double dblValue, final int iNumLeft, final int iNumRight, final double dblMultiplier)
  5. formatDouble(Object obj)
  6. formatDoubleAmount(double amount)
  7. formatDoubleArray(double[] arr, String format)
  8. formatDoubleAsPointsString(Double d)
  9. formatDoubleAsString(Double val)