News for hackers. Stuff that matters.
Re:Diagnosing a Linux-only unit test failure by smitherfield on Monday October 09, 2017 @03:41PM (#15436799)
`0.1 + 0.2 != 0.3` is a property of all (base-2) floating-point arithmetic, no matter the precision or programming language.
Re:Diagnosing a Linux-only unit test failure by estomagordo on Tuesday October 10, 2017 @07:13AM (#15440855)
Well yeah, but this was 0.1 + 0.2 != 0.15 + 0.15, and there's no obvious reason why 0.15 + 0.15 = 0.3 imo.
Re:Diagnosing a Linux-only unit test failure by philh on Tuesday October 10, 2017 @07:15AM (#15440859)
I interpreted their comment as "here's an example that will always work", and I appreciated it in that light.