You are viewing the documentation for Blueriq 16. Documentation for other versions is available in our documentation directory.
DIVIDE (/)
Use the '/' (forward slash) sign to divide values of some type of number.
Syntax
number1 / number2 / ...
Inputs
number1 - Dividend; number or attribute of some type of number to be divided by other number values.
number2 - Divisor; number or attribute of some type of number to divide by.
Return types
number / number = number
integer / integer = number
currency / currency = number
percentage / percentage = number
number / integer = number
integer / number = number
currency / number = currency
currency / integer = currency
percentage / number = percentage
percentage / integer = percentage
- currency / percentage = currency
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 | 1.25 | Currency |
5.00 / 3 | 1.6667 | Number |
Bonus.standard / 5 | 1.00 | Percentage |
Overview
Content Tools