Ad
  • Custom User Avatar

    Nope, mate.

    1st iteration: SystemA is 10 and SystemB is (10 * 0,95) ceiled to 10, so prices are equal, therefore moving to the next iteration.

    2nd iteration: SystemA is 20 and SystemB is (10 +(10 * 0,95)) ceiled to 10, so now the required condition is met (SysA > SysB).

    Result: you have to buy 2 tickets with SystemB for it to be lower after ceiling than SystemA.

  • Custom User Avatar

    Same question here.
    I guess it might be to keep the code in more neat fashion, but it looks really weird.