Forum Discussion
Hamish
Jul 28, 2011Cirrocumulus
Multiply the high value by 2^32 and add it to the low to get a 64bit number. The code will vary depending on language... But in C it would be something like
unsigned long long result=high<<32+low;
(Assumes that the high and low are unsigned integers)
In perl it'll vary, but you could try
my $quick64=($statValue->{high}*4294967296)+($statValue->{low}<0?(4294967296+$statValue->{low}):$statValue->{low});
Remember you need to treat the values as unsigned integers... if you treat them as signed, it'll not work correctly.
H