Skip to content

Math Services (system.math)

This namespace provides basic arithmetic services for numeric data.

Services

system.math:Add

Calculates the sum of two numbers.

  • Inputs:
    • num1: (number) First operand.
    • num2: (number) Second operand.
  • Outputs:
    • result: (number) The sum.

system.math:Subtract

Calculates the difference between two numbers.

  • Inputs:
    • num1: (number) The base number.
    • num2: (number) The amount to subtract.
  • Outputs:
    • result: (number) The difference.

system.math:Multiply

Calculates the product of two numbers.

  • Inputs:
    • num1: (number) First factor.
    • num2: (number) Second factor.
  • Outputs:
    • result: (number) The product.

system.math:Divide

Calculates the quotient of two numbers.

  • Inputs:
    • num1: (number) The dividend.
    • num2: (number) The divisor.
  • Outputs:
    • result: (number) The quotient.
    • error: (string) Only populated if division by zero occurs.

Released under the ISC License.