What data type are you using? Float or double or something else? I would imagine that you would have to use the modulo function for this case. Maybe you would want to mulitply the var by 10x10 and convert it to int (to cut off the remainder) and then divide by 10x10 and convert it into a float. But thats ineffecient, I dont think that you would want to do that. My best recommendation would be to play around with the modulo function (%).
I tried * by 10e10 and then converting to int and then double and then finally dividing by 10e10, but the == operator still is considering them not equal. I'm starting to get pissed off. When I use cout statements and show the variables directly before they are evaluated they print off as being equal.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.