小白教程
所有教程
关于
Search
172.70.100.189
172.70.100.189
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Func math pow”的源代码
本页内容
上一节:
Func_math_pi
下一节:
Func_math_rad2deg
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:pow()}}[[Category:PHP Math 数学函数参考手册|39]] = PHP pow() 函数 = [[:Category:PHP Math 数学函数参考手册]] pow() 的实例: <sample title="" desc="" lang="php" hererun="1"> <?php echo(pow(2,4) . "<br>"); echo(pow(-2,4) . "<br>"); echo(pow(-2,-4) . "<br>"); echo(pow(-2,-3.2)); ?> </sample> == 定义和用法 == pow() 函数返回 x 的 y 次方。 == 语法 == <pre> pow(x,y);</pre> {| class="table table-striped table-hover" ! 参数 ! 描述 |- | x | 必需。规定要使用的底。 |- | y | 必需。规定指数。 |} == 技术细节 == {| class="table table-striped table-hover" | 返回值: | x 的 y 次方。 |- | 返回类型: | 如果可能则返回 Integer,否则返回 Float。 |- | PHP 版本: | 4+ |- | PHP 更新日志: | PHP 4.0.6:如果可能则返回 integer。之前的版本只返回 float。PHP 4.2.0:如果发生错误则不产生任何的警告。 |} [[:Category:PHP Math 数学函数参考手册]]
返回至“
Func math pow
”。
上一节:
Func_math_pi
下一节:
Func_math_rad2deg