Skip to content

格式

typescript
Mathf.Pow(f, p)

所属类: Mathf

描述

返回f的p次幂。

参数

参数名类型描述
fnumber指定数值
pnumber幂值

返回值

类型描述
numberf的p次幂

代码示例

typescript
//求f的p次幂
let pow = Mathf.Pow(2,3) //pow=8