Hacker News new | ask | show | jobs
by siknad 1292 days ago
I've seen an advice to not use equality on floats, and instead use something like |x-y|<e. Probably translates to constructive reals as it needs to compute only some part of the numbers.