我喜欢
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