在ruby中,为什么我可以给负0.0浮点数分配一个负号,此功能有任何用处吗?有人可以向我解释这个吗?
-0.0 #=> -0.0 -0.0 * -1 #=> 0.0
ruby floating-point negative-zero
floating-point ×1
negative-zero ×1
ruby ×1