Java Percentage Format percentageFormat(BigDecimal value)

Here you can find the source of percentageFormat(BigDecimal value)

Description

percentage Format

License

Apache License

Declaration

public static String percentageFormat(BigDecimal value) 

Method Source Code


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

import java.math.BigDecimal;

import java.text.DecimalFormat;

public class Main {
    public static final String PERCENTAGE_FORMAT = "#,##0.00%";

    public static String percentageFormat(BigDecimal value) {
        return new DecimalFormat(PERCENTAGE_FORMAT).format(value);
    }//from  w w  w.j  a v  a 2s .co m
}

Related

  1. percent(double number)
  2. percent(double p1, double p2)
  3. percentage(Double v, String postfix)
  4. percentage(float f)
  5. percentageAsString(double input)
  6. percentDecimalFormat(final double no)
  7. percentFormat()
  8. percentFormat(BigDecimal interestRate)
  9. percentFormat(final BigDecimal bd)