power Function

Raises a real number to the power of another real number.


real power(real arg, real exponent)

Parameter

Description

arg

The number to calculate the power of.

exponent

The number to raise the number specified by the arg parameter to.

The real number that is the number specified by the arg parameter to the power of the number specified by the exponent parameter.

  • power(5.0,2.0); //Returns the value 25.0.

  • power(4.0,0.5); //Returns the value 2.0.

Community Additions

ADD
Show: