News for hackers. Stuff that matters.
Re:Uncle Bob and Silver Bullets (2017) by Joker_vD on Monday July 04, 2022 @12:23PM (#31978783)
Oh, but one generally wants an "acceptable difference" only when the numbers compared are close enough to zero, otherwise the "acceptable relative difference" should be used instead, right?
Re:Uncle Bob and Silver Bullets (2017) by ajuc on Monday July 04, 2022 @12:43PM (#31979045)
Yes, it's more complicated than that, but at least "straightforward" code with x==y won't compile so you'll have to think about it.