So what would be the datatype I am looking at. I know AS3 Number is 64 bit but it is double precision. I am converting code to C++ and since in AS3 it is valid to do this:
var i:Number = 123;
i >> 3; // Yeah shift right a double precision datatype
So in C++ I need now a datatype that is in the integral range of the Number type in AS3 (which is double precision). Please note I am converting and encode/decode functions that were previously used with the AS3 code so I must have the same result.
Thanks in advance.
The AS3 shift operator converts the expression being shifted and the shift amount to 32-bit integers. In C++, you emulate this behavior by casting a double data type to an int and shifting: