skip to main content
Corticon Studio: Rule Language Guide : Rule operator details and examples : Exponent
 

Try Corticon Now

Exponent

SYNTAX

<Number1> ** <Number2>

DESCRIPTION

Raises <Number1> by the power of <Number2>. The resulting data type is the more expansive of those of <Number1> and <Number2>. To find a root, <Number2> can be expressed as a decimal value, such as 0.5 for a square root, or -- for greater accuracy in larger roots -- in decimal format within parentheses, such as **(1.0/3.0) for a cube root. 

USAGE RESTRICTIONS

The Operators row of the table in Summary Table of Vocabulary Usage Restriction applies. No special exceptions.

RULESHEET EXAMPLE

This sample Rulesheet uses exponent to raise integer1 and integer2 by the power of 2 and 0.5, respectively, and assign the resulting value to decimal1 and decimal2, respectively.

SAMPLE RULETEST

A sample Ruletest provides decimal1 and integer1 values for three examples.