I have spent the entire day trying to figure out
why this simple math problem was not working properly:
Code: Select all
double mTest = -706850036.0;
mTest += 1.0;
It was coming up with
-706850048.0; (note that it should end in
035!). Then, just for kicks, I changed the
floating point-mode on the startup screen from
fastest to
consistent and low and behold, the math works right.
I was under the impression that this feature was for the GPU and would not interfere with the standard math libs. Would someone explain to me what is actually happening behidn the scenes? Why is this feature interferring with math outside of Ogre?