[Solved] Operator >= returns false when it actually true


You haven’t provided example values of p.y and sign_y, so it’s difficult to tell for sure.

But the problem is almost certainly that p.y * sign_y is not exactly equal to 180; however it will be rounded when you print it.

I suspect that if your print the value of (p.y * sign_y) - end_pos.y, the result will not be 0.

2

solved Operator >= returns false when it actually true