format
typescript
Mathf.Pow(f, p)class: Mathf
description
Returns the value of f raised to the power of p.
parameter
| param_name | type | description |
|---|---|---|
| f | number | The specified value. |
| p | number | The power value. |
return
| type | description |
|---|---|
number | The value of f raised to the power of p. |
code example
typescript
// Calculate the value of f raised to the power of p
let pow = Mathf.Pow(2,3) //pow=8