Root (Function) — Skript

Addon: Skript · Category: Function

Syntax

root(n: number, number: number) :: number

Description

Calculates the <i>n</i>th root of a number.

Examples

root(2, 4) = 2 # same as sqrt(4)
root(4, 16) = 2
root(-4, 16) = 0.5 # same as 16^(-1/4)

View source