You are viewing the documentation for Blueriq 14. 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.attributeValueType
Child.pocketMoney2.50Currency
Bonus.standard5.00Percentage
ExpressionResultType
Child.pocketMoney % 0.200.10Currency
Child.pocketMoney % 10.50Currency
Bonus.standard % 32.00Percentage
9 % 2.501.5000Number