Closed cdegroot closed 5 years ago
1) test round with 2 sigfigs (Graphmath.Mat33.Round_Mat33) test/mat33/mat33_round_test.exs:16 Assertion with == failed code: {1.1, 2.1, 3.1, 4.6, 5.7, 6.8, 7.0, 8.4, 10.0} == Graphmath.Mat33.round({1.14, 2.14, 3.14, 4.55, 5.66, 6.77, 7.03, 8.36, 9.99}, 1) left: {1.1, 2.1, 3.1, 4.6, 5.7, 6.8, 7.0, 8.4, 10.0} right: {1.1, 2.1, 3.1, 4.5, 5.7, 6.8, 7.0, 8.4, 10.0} stacktrace: test/mat33/mat33_round_test.exs:17: (test)
Did something in the representation of floats maybe change that 4.54 is internally represented as 4.549....?
Wow, that's really bizarre. I'll look into that, thanks!
Confirmed. This is most certainly still a problem.
Fixed in most recent patch.
Did something in the representation of floats maybe change that 4.54 is internally represented as 4.549....?