Menu Samaritan's Purse

POW

Exponential expression

SYNTAX

pow ( number $base , number $exp ) : number

PARAMETERS

base

The base to use

exp

The exponent

RETURN

base raised to the power of exp. If both arguments are non-negative integers and the result can be represented as an integer, the result will be returned with integer type, otherwise it will be returned as a float.

EXAMPLES

1

0.0625

2

16

3

0.0625
16

PHP