Java BigDecimal Format formatRate(BigDecimal rate)

Here you can find the source of formatRate(BigDecimal rate)

Description

format Rate

License

Apache License

Declaration

public static String formatRate(BigDecimal rate) 

Method Source Code


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

import java.math.BigDecimal;

public class Main {

    public static String formatRate(BigDecimal rate) {
        return rate.multiply(new BigDecimal(100)).toPlainString() + "%";
    }//  www .  ja  v a  2s.com
}

Related

  1. formatPercent(BigDecimal percent)
  2. formatPercentage(BigDecimal percentage)
  3. formatPercentDecimalDouble(Object input)
  4. formatQuantity(BigDecimal quantity)
  5. formatQuantity(BigDecimal quantity)
  6. formatRateForDisplay(BigDecimal rate)
  7. formatRight(BigDecimal pNombre, NumberFormat pNf, int pMaxNumberOfDigit)
  8. formatServiceSpecificDate(Date date)
  9. formatSize(Integer size)