I think sometimes floats that say they are whole numbers are actually really close and not exact. It's kinda like a rounding error. In your case it's an error of only 0.000001907349
Casting won't help with this. Maybe try a rounding function before you do the maths?
Or if on the future you want to check if 2 floats are equal, try checking if the difference is less than a reeeaally small number instead of ==
Trending Articles
More Pages to Explore .....