Math.Pow(Value, Value)

.Pow() method returns the first number raised to the power of the second number.

Applies To

Description

Math.Pow() method returns the first number (base) raised to the power of the second number (exponent). Base ^ Exponent.

Properties and Methods

None

Available

The .Pow(X, Y) method is available in:

  • 16.04.064
  • 16.05.064
  • 16.06.030
  • 16.07.003
  • 17.00.001
  • All newer builds

Type

Decimal

Syntax

Math.Pow(X, Y);

Parameters

Parameter

Required

Description

Value

Yes

A number. This is the base.

Non-numeric values will result in a scripting error message.

Value

Yes

A number. This is the exponent.

Non-numeric values will result in a scripting error message.

Example

Event.Form.MessageBox('Math.Pow(10, 2): ' + Math.Pow(10, 2) +

'\nMath.Pow(2, 8): ' + Math.Pow(2, 8));

 

/* Expected System Prompt Display:

Math.Pow(10, 2): 100

Math.Pow(2, 8): 256

*/