You are viewing the documentation for Blueriq 17. Documentation for other versions is available in our documentation directory.
POWER (**)
Use the '**' operator to raise a number to a power.
Syntax
base ** exponent
Inputs
base - Base; number or attribute of some type of number.
exponent - Exponent, power; number or attribute of some type of number.
Return types
number ** number = number
integer ** integer = number
number ** integer = number
integer ** number = number
currency ** number = currency
currency ** integer = currency
percentage ** number = percentage
percentage ** integer = percentage
Examples
Suppose the following data model.
Entity.attribute | Value | Type |
---|---|---|
Child.pocketMoney | 2.50 | Currency |
Bonus.standard | 5.00 | Percentage |
Expression | Result | Type |
---|---|---|
Child.pocketMoney ** 1.00 | 2.50 | Currency |
Child.pocketMoney ** 2 | 6.25 | Currency |
5.00 ** 3 | 125.0000 | Number |
Bonus.standard ** 5 | 3125.00 | Percentage |
Overview
Content Tools