You should avoid equality comparisons between floats due to floating precision.
Your text “298.7503” probably won’t be represented as that when running.
You should rather use “>” or “<” when checking such bounds.
More info here
You should avoid equality comparisons between floats due to floating precision.
Your text “298.7503” probably won’t be represented as that when running.
You should rather use “>” or “<” when checking such bounds.
More info here