rtex-engine/docs/instructions/divide.md
2022-12-29 16:11:06 -05:00

695 B

divide

Divide two numbers.

Parameters

  • a (integer, float, double, instruction) - The number to divide.
  • b (integer, float, double, instruction) - The number to divide by.

Return

(integer, float, double) - The result of the division.

Exceptions

  • EvaluationException - If there was an error while evaluating one or more parameters.
  • TypeException - If one or more parameters are not of the expected type.
  • ZeroDivisionException - If the divisor is zero.

Instruction Example

{
  "type": "divide",
  "_": {
    "a": 10,
    "b": 2
  }
}

Last Updated

Monday, December 26th, 2022. Written by Netkas