pow

From RPTools Wiki
Revision as of 08:01, 9 March 2009 by Verisimilar (talk | contribs) (Initial write-up.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

pow() Function

Introduced in version 1.3b36
Returns a number raised to the power of 2, or raised to a specific n-th power.

Usage

pow(num)
pow(num, exp)

Parameters

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

Examples

Use pow() to raise 5 to the power of 2:
[r: pow(5)]

Returns: 25

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

[r: pow(5, 3)]
Returns: 125