Java Number Percentage Format getPercentFormatter()

Here you can find the source of getPercentFormatter()

Description

get Percent Formatter

License

Apache License

Declaration

private static NumberFormat getPercentFormatter() 

Method Source Code


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

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

public class Main {
    private static NumberFormat getPercentFormatter() {
        NumberFormat format = DecimalFormat.getPercentInstance();
        format.setMinimumFractionDigits(1);
        format.setMaximumFractionDigits(1);
        return format;
    }//from   w w w  .  jav  a 2  s .  co  m
}

Related

  1. getPercent(double percent)
  2. getPercent(Double value)
  3. getPercent(final long downloadCurrent, final long downloadMax)
  4. getPercent(long l1, long l2)
  5. getPercent(long val1, long val2)
  6. getPercentileWithSuffix(double percentile)
  7. getPercentileWithSuffix(double percentile)
  8. getPercentMemUse()
  9. getPercentNumber(double num, int scale)