Ad
  • Default User Avatar

    It's on the kata's sensei to handle that. I got something like "7.986 should equal 7.986000000000001" but it's not like I can "unround" my answer. If the kata's sensei is going to compare two floats, they should subtract the two values from each other and compare it to an error threshold.

    For example:
    abs(floatOne - floatTwo) < 0.000001

    Why this hasn't been more established at this kyu level, I don't know.