format
typescript
Mathf.Sqrt(val)class: Mathf
description
Calculates the square root of a given value.
parameter
| param_name | type | description |
|---|---|---|
| val | number | The specified value. |
return
| type | description |
|---|---|
number | The square root of val. |
code example
typescript
//Calculates the square root of val
let sqrt = Mathf.Sqrt(9) //sqrt=3