pow Summary Raises a number (base) to the specified power (exponent). Signatures Click on a signature to select it and view its documentation. public static int pow(int base, int exponent) public static double pow(double base, double exponent) Usage public static int pow(int base, int exponent) public static double pow(double base, double exponent) Returns The base raised to the power of the specified exponent. The base raised to the power of the specified exponent. Parameters base The base of the exponentiation operation. exponent The exponent to raise the base to. Parameters base The base of the exponentiation operation. exponent The exponent to raise the base to. Description Raises a number (base) to the specified power (exponent). Mathematically, this would be represented as baseexponent. Raises a number (base) to the specified power (exponent). Mathematically, this would be represented as baseexponent. Examples Basic Usage 1234import System; // 2 to the 5th powerConsole.log(Math.pow(2, 5)); // 32 Basic Usage 1234import System; // 2.2 to the 5.1 powerConsole.log(Math.pow(2.2d, 5.1d)); Share HTML | BBCode | Direct Link