小白教程
所有教程
关于
Search
172.70.127.41
172.70.127.41
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Func math is finite”的源代码
本页内容
上一节:
Func_math_hypot
下一节:
Func_math_is_infinite
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:is_finite()}}[[Category:PHP Math 数学函数参考手册|25]] = PHP is_finite() 函数 = [[:Category:PHP Math 数学函数参考手册]] 判断一个值是否为有限值: <sample title="" desc="" lang="php" hererun="1"> <?php echo is_finite(2) . "<br>"; echo is_finite(log(0)) . "<br>"; echo is_finite(2000); ?> </sample> == 定义和用法 == is_finite() 函数判断一个值是否为有限值。 如果指定的值是有限值,该函数返回 true (1)。否则,它将返回 false/nothing。 如果值是本机平台上 PHP 浮点数所允许范围内,则该值是有限值。 == 语法 == <pre> is_finite(value);</pre> {| class="table table-striped table-hover" ! 参数 ! 描述 |- | value | 必需。规定要检查的值。 |} == 技术细节 == {| class="table table-striped table-hover" | 返回值: | 如果 value 是有限值,则返回 TRUE。否则,返回 FALSE。 |- | 返回类型: | Boolean |- | PHP 版本: | 4.2+ |} [[:Category:PHP Math 数学函数参考手册]]
返回至“
Func math is finite
”。
上一节:
Func_math_hypot
下一节:
Func_math_is_infinite