Java Decimal Format decimalConversation(double amount)

Here you can find the source of decimalConversation(double amount)

Description

decimal Conversation

License

Apache License

Declaration

public static String decimalConversation(double amount) 

Method Source Code

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

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

public class Main {
    public static String decimalConversation(double amount) {
        NumberFormat formatter = new DecimalFormat("#0.00");
        return formatter.format(amount);
    }//from ww w  .j  av a  2  s  . c o  m
}

Related

  1. adjust(Double lng, Double lat, Double distance, Double angle)
  2. adjustDoubleNumber(Double doubleNumber, int maxIntPart, int maxFloatPart)
  3. createMeanRmsString(double values[])
  4. decimal2percent(double decimal, int pos)
  5. decimal2string(BigDecimal arg, Locale loc)
  6. decimalFormat()
  7. decimalFormat(double d)
  8. decimalFormat(double no)
  9. decimalFormat(double number)