Skip to content

$root

$root will return the root of a given number.

Usage

$root[number;root]

Parameters

FieldTypeDescriptionRequired
numbernumberThe number of which you want the root returned of.true
rootnumberThe root.true

Example(s)

This will calculate the root of 7:

1
client.command({
2
name: "root",
3
code: `
4
$root[7;2]` // returns: 2.6457513110645907
5
});