Skip to content

Commit db70c34

Browse files
mkuratczykmergify[bot]
authored andcommitted
Negative zero fix
(cherry picked from commit 0f8689b) (cherry picked from commit 5a2ef73) # Conflicts: # deps/rabbit_common/src/rabbit_numerical.erl
1 parent be334eb commit db70c34

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

deps/rabbit_common/src/rabbit_numerical.erl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@
3030
%% human-readable output, or compact ASCII serializations for floats.
3131
digits(N) when is_integer(N) ->
3232
integer_to_list(N);
33+
<<<<<<< HEAD
3334
digits(0.0) ->
35+
=======
36+
digits(N) when N =:= +0.0 orelse N =:= -0.0 ->
37+
>>>>>>> 5a2ef73595 (Negative zero fix)
3438
"0.0";
3539
digits(Float) ->
3640
{Frac1, Exp1} = frexp_int(Float),

0 commit comments

Comments
 (0)