-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Currently this uses floats to perform arithmetic, which leads to unexpected evals over certain numerical intersections
This test currently passes, but most people's general conceptions would expect this to fail
test "floating point arithmetic" do
refute JsonLogic.apply(%{"+" => [0.1, 0.2]}) == 0.3
assert JsonLogic.apply(%{"+" => [0.1, 0.2]}) == 0.30000000000000004
endMetadata
Metadata
Assignees
Labels
No labels