Erlang Forums
In Erlang/OTP 27, +0.0 will no longer be exactly equal to -0.0
Currently, the floating point numbers 0.0 and -0.0 have distinct internal representations. That can be seen if they are converted to binaries: 1> <<0.0/float>>. <<0,0,0,0,0,0,0,0>> 2> <<-0.0/float>>. <<128,0,0,0,0,0,0,0>> However, when they are matched…