using logical and all must evaluate true..
the or is used because one of your statements will never be true when the others are..
with or this side true OR this side true, then it happens..
will also happen if both side evaluate true but kind of impossible..
Because floating point numbers are represented using a finite number of bits but they purport to represent values from the infinite field of real numbers. Thus they are only exact representations for an extremely limited and finite set of numbers. For everything else they are only approximations.
No. The standard technique is to test that the variable's value lies within a small band centered around the point of interest.
When the value reach 4.85 it doesn't work so i assume that part is false while 4.82 and 4.83 are true.
Kinda weird, something is making it not working propperly.