Java Percentage Format toPercent(double percent)

Here you can find the source of toPercent(double percent)

Description

to Percent

License

Apache License

Declaration

public static String toPercent(double percent) 

Method Source Code

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

import java.text.NumberFormat;

public class Main {
    private static final NumberFormat FORMAT_PERCENT = NumberFormat.getNumberInstance();

    public static String toPercent(double percent) {
        return FORMAT_PERCENT.format(percent) + "%";
    }//from   w w  w .  j a  v a 2 s.  c om
}

Related

  1. percentFormat(float value)
  2. percentFormat(Object object)
  3. percentTotal(double value, double total)
  4. roundedPercentageGreaterThan(double left, double right)
  5. toPercent(Double doubleValue)
  6. toPercent(double value)
  7. toPercent(float f)