Java Decimal Format decimal2string(BigDecimal arg, Locale loc)

Here you can find the source of decimal2string(BigDecimal arg, Locale loc)

Description

decimalstring

License

Open Source License

Declaration

public static String decimal2string(BigDecimal arg, Locale loc) 

Method Source Code

//package com.java2s;

import java.math.BigDecimal;

import java.text.NumberFormat;

import java.util.*;

public class Main {
    public static String decimal2string(BigDecimal arg, Locale loc) {
        if (arg == null)
            return null;
        return NumberFormat.getInstance(loc).format(arg);
    }/*w  w w  .  j  av a  2s .  co m*/
}

Related

  1. addDouble(Integer i, Double d)
  2. adjust(Double lng, Double lat, Double distance, Double angle)
  3. adjustDoubleNumber(Double doubleNumber, int maxIntPart, int maxFloatPart)
  4. createMeanRmsString(double values[])
  5. decimal2percent(double decimal, int pos)
  6. decimalConversation(double amount)
  7. decimalFormat()
  8. decimalFormat(double d)
  9. decimalFormat(double no)