Re:A surprisingly hard CS problem: sums of square roots (2018)
by pontifier on Monday January 24, 2022 @04:59PM
(#30064651)
Exactly! Write the best, simplest, acceptable working code you can, and then put a comment in there that if someone has an issue with it, they are welcome to improve it...
if (.1 + .1 != .2):
reason = "we can't have nice things."
if (.1 + .1 != .2): reason = "we can't have nice things."