What is the point of multiplying an int with a double and store in an int?
1 2 3 4 5 6 7 8 9
// Convert a rk value to an integer.
int GetIntegerFromRKValue(int rkValue)
{
bool isMultiplied = rkValue & 1;
rkValue >>= 2;
if (isMultiplied)
rkValue *= 0.01;
return rkValue;
}
Seems pretty silly. *0.01 its essentially doing the same thing as / 100. I was thinking maybe it makes a difference due to rounding at super huge numbers, but I can't find any int values that would produce a different result than x / 100.