You are viewing the documentation for Blueriq 15. Documentation for other versions is available in our documentation directory.
MOD
Returns the remainder of a division.
Syntax
number1 % number2
Inputs
number1 - Dividend; number or attribute of some type of number to be divided by another number value.
number2 - Divisor; number or attribute of some type of number to divide by.
Return types
number % number = number
integer % integer = integer
currency % currency = currency
percentage % percentage = percentage
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 % 0.20 | 0.10 | Currency |
Child.pocketMoney % 1 | 0.50 | Currency |
Bonus.standard % 3 | 2.00 | Percentage |
9 % 2.50 | 1.5000 | Number |
Overview
Content Tools