Ad
  • Custom User Avatar

    I think this is relevant to this issue that I just noticed.
    In the expression below, I believe the multiplication is being handled before the division, even though the division is to the left of the multiplication. (I feel like we are expected to think of pemdas as p-e-m-d-a-s instead of p-e-md-as, but this is not how tings posa werk...)

    The following is untrue in Ruby because of INTEGER DIVISION:
    Expected: '2 / (2 + 3) * 4.33 - -6' to be 7.732 but got 6.0 - Expected: 7.732, instead got: 6.0

    PROOF:
    2 / (2 + 3) -> 0
    0 * 4.33 -> 0.0
    0.0 - -6 -> 6.0

  • Custom User Avatar

    !!! Bug preventing me from completing kata correctly !!!

    The following is untrue in Ruby because of INTEGER DIVISION:
    Expected: '2 / (2 + 3) * 4.33 - -6' to be 7.732 but got 6.0 - Expected: 7.732, instead got: 6.0

    PROOF:
    2 / (2 + 3) -> 0
    0 * 4.33 -> 0.0
    0.0 - -6 -> 6.0