Skip to content

Commit

Permalink
Also match on -0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mworrell authored Apr 26, 2024
1 parent ab04ef2 commit 43d5efc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/template_compiler_operators.erl
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ divide(A, B, Runtime, Context) ->
{_, undefined} -> undefined;
{_, 0} -> undefined;
{_, +0.0} -> undefined;
{_, -0.0} -> undefined;
{A1, B1} -> A1 / B1
end.

Expand All @@ -145,6 +146,7 @@ modulo(A, B, Runtime, Context) ->
{_, undefined} -> undefined;
{_, 0} -> undefined;
{_, +0.0} -> undefined;
{_, -0.0} -> undefined;
{A1, B1} -> A1 rem B1
end.

Expand Down

0 comments on commit 43d5efc

Please sign in to comment.