Here you can find the source of pow(BigDecimal one, int another)
public static BigDecimal pow(BigDecimal one, int another)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; import java.math.MathContext; import java.math.RoundingMode; public class Main { public static final MathContext _SCALE = new MathContext(100, RoundingMode.HALF_UP); public static BigDecimal pow(BigDecimal one, int another) { return one.pow(another, _SCALE); }//from w w w . j av a 2s . c o m }