Skip to content

format

typescript
Mathf.Pow(f, p)

class: Mathf

description

Returns the value of f raised to the power of p.

parameter

param_nametypedescription
fnumberThe specified value.
pnumberThe power value.

return

typedescription
numberThe 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