RPTools

Personal tools
From MapToolDoc

power

Contents

power() Function

Introduced in version 1.3b36

Returns a number raised to the power of 2, or raised to a specific exponent.

Usage

  1. power(num)
  1. power(num, exp)
  1. pow(num)
  1. pow(num, exp)

Parameters

  • num - the base number used to perform the operation.
  • exp - the exponent used in the operation.

Examples

Example 1: Use power() to raise 5 to the power of 2:

  1. [r: power(5)]

Returns: 25

Example 2: Use pow() to raise 5 to the power of 3:

  1. [r: pow(5, 3)]

Returns: 125

See Also

Exponentiation, ln()