Agenda

  1. Warm-up: Which One Doesn’t Belong — four numeric results
  2. Compare and name it: How Numbers Actually Fit — why 0.1 + 0.2 != 0.3, and where the edges of every representation are
  3. Money, deliberately: rebuild a price calculation that fails in floats, and fix it properly

Things to do before our next class

  • Journal: one place in your own code that compares floats.