Java Fraction Format formatIntRate(double rateInt)

Here you can find the source of formatIntRate(double rateInt)

Description

format Int Rate

License

Open Source License

Declaration

public static String formatIntRate(double rateInt) 

Method Source Code

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

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

public class Main {

    public static String formatIntRate(double rateInt) {
        try {//from   w ww. j  a  v  a 2s. c  o m
            NumberFormat nf = new DecimalFormat("0.00");
            String moneyValue = nf.format(rateInt * 100);
            return moneyValue + "%";
        } catch (Exception ex) {
            return "";
        }
    }
}

Related

  1. FormatFolat(Float num)
  2. formatGetal(float getal)
  3. formatIndexValuePairs(List indicies, List values, String valueSeparator, String rangeSeparator)
  4. formatInt(double value)
  5. formatIntoCurr(double num, int digits)
  6. formatKnots(double v)
  7. formatManeyPattern(String pattern, Double amount)
  8. formatMetricsDecimal(double value)
  9. formatNoGrouping(double value)