Here you can find the source of decimalPow(BigDecimal number, BigDecimal power)
public static BigDecimal decimalPow(BigDecimal number, BigDecimal power)
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; public class Main { /**/*from w w w .j a v a 2 s . com*/ * Pow for two decimals */ public static BigDecimal decimalPow(BigDecimal number, BigDecimal power) { return new BigDecimal(Math.pow(number.doubleValue(), power.doubleValue())); } }