power
Description
Returns the result of raising a number to the power of an exponent.
Syntax
Like many functions in DataPrime, power
supports two notations, function and method notation. These interchangeable forms allow flexibility in how you structure expressions.
Arguments
Name | Type | Required | Description |
---|---|---|---|
number | number | true | The base value to raise |
exponent | number | true | The exponent to raise the base to (e.g. 2 squares the base) |
Example
Use case: Square a number
Raise a numeric field to the power of 2 to calculate its square.
Output
Theme
Light