Java Decimal Format decimalFormat(double number)

Here you can find the source of decimalFormat(double number)

Description

decimal Format

License

Open Source License

Declaration

public static String decimalFormat(double number) 

Method Source Code


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

import java.text.DecimalFormat;

public class Main {
    private static DecimalFormat decimalFormat = new DecimalFormat("0.##");

    public static String decimalFormat(double number) {
        return decimalFormat.format(number);
    }/* w  ww. ja va  2s.c  o  m*/
}

Related

  1. decimal2string(BigDecimal arg, Locale loc)
  2. decimalConversation(double amount)
  3. decimalFormat()
  4. decimalFormat(double d)
  5. decimalFormat(double no)
  6. decimalFormat(Double numeric)
  7. decimalFormat(double value, int decimalCnt)
  8. decimalFormat(Object obj)
  9. decimalFormat(String pattern)