Java Number Power pow(int value, int exp)

Here you can find the source of pow(int value, int exp)

Description

pow

License

Open Source License

Declaration

public static int pow(int value, int exp) 

Method Source Code

//package com.java2s;

public class Main {
    public static int pow(int value, int exp) {
        return value == 2 ? 1 << exp : (int) Math.pow(value, exp);
    }/*  w  w  w. java  2s  . c om*/
}

Related

  1. pow(int base, int power)
  2. pow(int i, int pow)
  3. pow(int leftOp, int rightOp)
  4. pow(int n, int p)
  5. pow(int number, int power)
  6. pow(int x, int y)
  7. pow(int[] arr, double p)
  8. pow(Integer a, Integer b)
  9. pow(long base, long exp)