Skip to content

format

typescript
Mathf.Sqrt(val)

class: Mathf

description

Calculates the square root of a given value.

parameter

param_nametypedescription
valnumberThe specified value.

return

typedescription
numberThe square root of val.

code example

typescript
//Calculates the square root of val
let sqrt = Mathf.Sqrt(9) //sqrt=3