$sqrt

Returns the square root of the specified number.

Syntax

$sqrt[Number]

Parameters

  • Number (Type: Integer, Float || Flag: Required): The number greater than or equal to 0.

Example

$nomention
Result: $sqrt[$message]
!example 25 Result: 5 !example -2 ❌ Function $sqrt at 2:9 returned an error: the input number can't be negative. !example 2 Result: 1

What is this?

How $message works?

Note

When calculating roots, use $enableDecimals[] to get decimal results for numbers like 1, 2, 3, 5, etc…

🤖 Playground

Here you can understand how this function works.

Input:

$sqrt[]

Output:

Result: 5