Here you can find the source of addPercent(BigDecimal price, double amount)
public static BigDecimal addPercent(BigDecimal price, double amount)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; public class Main { public static BigDecimal addPercent(BigDecimal price, double amount) { return price.add(getPercentageValue(price, amount)); }//from w w w. ja v a 2 s .c o m private static BigDecimal getPercentageValue(BigDecimal price, double amount) { return price.multiply(new BigDecimal(amount / 100)); } }