
Aug. 31, 2021
3:42 p.m.
On Wed, Sep 1, 2021 at 5:35 AM Nick Parlante <nick@cs.stanford.edu> wrote:
I want to get to a world that is, let's say, "== tolerant" ...
Do you use floating point values in your course?
You will be relieved to know that we have great fun showing them how == does not work for floating point numbers. It is super memorable how that all comes unglued.
*sigh* Falsehoods programmers believe about floating point: "Equality is broken". ChrisA