You are viewing the documentation for Blueriq 14. 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.attributeValueType
Child.pocketMoney2.50Currency
Bonus.standard5.00Percentage
ExpressionResultType
Child.pocketMoney ** 1.002.50Currency
Child.pocketMoney ** 26.25Currency
5.00 ** 3125.0000Number
Bonus.standard ** 53125.00Percentage