Java Percentage Format percentDecimalFormat(final double no)

Here you can find the source of percentDecimalFormat(final double no)

Description

percent Decimal Format

License

Open Source License

Declaration

public static final String percentDecimalFormat(final double no) 

Method Source Code

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

import java.text.DecimalFormat;

public class Main {
    public static final String percentDecimalFormat(final double no) {
        final DecimalFormat PERCENT_DECIMAL_FORMAT = ((DecimalFormat) DecimalFormat
                .getNumberInstance());//from w  w w  .j a v a2 s.c om
        PERCENT_DECIMAL_FORMAT.applyPattern("00.00");
        return PERCENT_DECIMAL_FORMAT.format(no);
    }
}

Related

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