Java tutorial
import java.math.BigDecimal; public class Main { public static void main(String[] args) { BigDecimal bg1 = new BigDecimal("1.23"); // apply pow method on bg1 BigDecimal bg2 = bg1.pow(3); System.out.println(bg2); } }