恩 max/min 函数在某些情况下会返回 -0.0 。
# Psy Shell v0.3.3 (PHP 5.5.30 — cli) by Justin Hileman
>>> max(ceil(-0.5), 0)
=> -0.0
原因分析:http://0x1.im/blog/php/bug-of-php-function-max.html
当然了,这又是广告。
恩 max/min 函数在某些情况下会返回 -0.0 。
# Psy Shell v0.3.3 (PHP 5.5.30 — cli) by Justin Hileman
>>> max(ceil(-0.5), 0)
=> -0.0
原因分析:http://0x1.im/blog/php/bug-of-php-function-max.html
当然了,这又是广告。