Java tutorial
//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) { return amount.multiply(percentage.divide(HUNDRED)); } }