Java BigDecimal Add addVatAmount(BigDecimal percentage, BigDecimal amount)

Here you can find the source of addVatAmount(BigDecimal percentage, BigDecimal amount)

Description

add Vat Amount

License

Open Source License

Declaration

public static BigDecimal addVatAmount(BigDecimal percentage,
            BigDecimal amount) 

Method Source Code

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

import java.math.BigDecimal;

public class Main {
    private static final BigDecimal HUNDRED = new BigDecimal("100");

    public static BigDecimal addVatAmount(BigDecimal percentage,
            BigDecimal amount) {//from  w ww . ja v a  2 s. co m
        return amount.multiply(percentage.divide(HUNDRED));
    }
}

Related

  1. addSalePrice(Map complexSalePrice, BigDecimal saleprice)
  2. addToBigDecimalInMap(Map theMap, K mapKey, BigDecimal addNumber)
  3. addToBigDecimalInMap(Object key, BigDecimal value, Map theMap)
  4. addUlp(BigDecimal x)
  5. addVAT(int priceInCents, BigDecimal vat)
  6. sum(BigDecimal num1, BigDecimal num2, int scale)
  7. sum(BigDecimal[] bigDecimalNumbers)
  8. sum(final List list)
  9. sum(List numbers)