Exponentiation (^) - operator of language VBScript
Used to raise a number to the power of an exponent.
In the PROMOTIC system it is better to use the Pm.Pow method.
result = number ^ exponent
Number can be negative only if exponent is an integer value. If more than one exponentiation is performed in a single expression, then the ^ operator is evaluated as it is encountered from left to right.
Select and copy to clipboard
Dim a, b
a = 3
b = a ^ 2 'the value 9 will be in b