Multiplying int with double

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;
}


Part of "BasicExcel - A Class to Read and Write to Microsoft Excel"
https://www.codeproject.com/Articles/13852/BasicExcel-A-Class-to-Read-and-Write-to-Microsoft
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.
Last edited on
Thanks Ganado.
Topic archived. No new replies allowed.