Ad
  • Custom User Avatar

    Floating point comparisons are horribly wrong in this kata. "Expected 1.1 * 2.2 * 3.3 == 7.986, got 7.986: 7.986000000000001 should equal 7.986". Floating points are ALWAYS supposed to be checked within the range of an epsilon. This is because computers cannot actually represent floating point numbers accurately.