I've got some code for a game I'm working on that converts double values to Int64. The problem areas is as follows:
double xVal = 1.6;
Int64 xValInt64 = (Int64)xVal;
Int32 xValInt32 = (Int32)xVal;
Testing on my PC works great.
However, testing on my mobile device (iPhone) results in:
xValInt64 = 4609884575999459329
xValInt32 = 1
I can't wrap my mind around why this is happening. Anybody dealt with this before? Why is my cast not working?