Skip to content

Commit 48955ad

Browse files
Merge pull request #9414 from rabbitmq/negative-zero-otp27-take2
Forward compatibility with Erlang 27: negative zero fix, take 2
2 parents 6c39c15 + 0f8689b commit 48955ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbit_common/src/rabbit_numerical.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
%% human-readable output, or compact ASCII serializations for floats.
3131
digits(N) when is_integer(N) ->
3232
integer_to_list(N);
33-
digits(N) when N =:= 0.0 ->
33+
digits(N) when N =:= +0.0 orelse N =:= -0.0 ->
3434
"0.0";
3535
digits(Float) ->
3636
{Frac1, Exp1} = frexp_int(Float),

0 commit comments

Comments
 (0)