Java BigDecimal Power pow(BigDecimal one, int another)

Here you can find the source of pow(BigDecimal one, int another)

Description

pow

License

Apache License

Declaration

public static BigDecimal pow(BigDecimal one, int another) 

Method Source Code


//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
}

Related

  1. pow(BigDecimal arg0, BigDecimal arg1)
  2. pow(BigDecimal b, int p, int q)
  3. pow(BigDecimal base, BigDecimal exponent)
  4. pow(BigDecimal base, BigDecimal power)
  5. pow(BigDecimal savedValue, BigDecimal value)
  6. power(BigDecimal base, int exponent)
  7. power(final BigDecimal value, final long power)
  8. decimalPow(BigDecimal number, BigDecimal power)