power()

power()

Overview

The power() function takes baseNumber and powerNumber as arguments. It returns the baseNumber raised to the power of powerNumber.

Return Type

  • Decimal

Syntax

<variable> = <baseNumber>.power( <powerNumber> );

(OR)

<variable> = power(<baseNumber>,<powerNumber>);
ParameterDescriptionData type
<variable>Variable which will contain the returned value.DECIMAL
<baseNumber>Value to be raised to powerNumber.NUMBER or DECIMAL
<powerNumber>The power to which the baseNumber will be raised.NUMBER or DECIMAL

Examples

numOne = 2;
numTwo = 2;
newValue = numOne.power(numTwo);       // returns 4

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohodeluge.com