加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

在PHP中有没有类似于NEGATIVE_INFINITY的东西?

发布时间:2020-12-13 14:08:08 所属栏目:PHP教程 来源:网络整理
导读:我喜欢 javascript中的负无穷大值,我认为在很多情况下使用它很有用和干净,但是在 PHP中找不到类似的东西,它是否存在? -INF 从PHP Documentation的评论获得: I just learnt of INF today and found out that it can be used in comparisons: 06001 You can
我喜欢 javascript中的负无穷大值,我认为在很多情况下使用它很有用和干净,但是在 PHP中找不到类似的东西,它是否存在?
-INF

从PHP Documentation的评论获得:

I just learnt of INF today and found out that it can be used in comparisons:

06001

You can also take its negative:

06002

Division by INF is allowed:

06003

And test for it:

06004

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读