Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Math functions

Table of Contents
minLevel2
typeflat

ADD

Use the '+' (plus) sign to add values of some type of number.

Syntax

Code Block
number1 + number2 + ...
  • number1 - First number or attribute of some type of number to add.
  • number2 - Second number or attribute of some type of number to add.

Return types

  • number + number = number
  • integer + integer = integer
  • currency + currency = currency
  • percentage + percentage = percentage
  • number + integer = number
  • number + currency = currency
  • number + percentage = percentage
  • integer + currency = currency
  • integer + percentage = percentage

Examples

Suppose the following data model. Attribute Child.pocketMoney is of type currency and has a value of 2.50. Attribute Bonus.standard is of type percentage and has a value of 5.00.

  • Child.pocketMoney + 3.00 = 5.50 of type currency
  • Child.pocketMoney + 3 = 5.50 of type currency
  • 2.50 + 3 = 5.5000 of type number
  • 100 + Bonus.standard = 105.00 of type percentage
  • Child.pocketMoney + Bonus.standard results in an error

...