rtex-engine/docs/instructions/arithmetic/square_root.md

613 B

square_root

Calculates the square root of a number.

Parameters

  • value (integer, float, double) - The number to calculate the square root of.

Return

(integer, float, double) - The result of the square root calculation.

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.

Instruction Example

{
  "type": "square_root",
  "_": {
    "value": 4
  }
}

Last Updated

Monday, December 30th, 2022. Written by Netkas