in reply to Re: pack 64 bit int ?
in thread pack 64 bit int ?

that won't work for negative numbers (which is why I use that ugly if($i<0){} in my attempt). BigInt (perhaps unfortunately) doesn't seem to use 2's complement.

(eg. -1 results in 00000000ffffffff instead of ffffffffffffffff)

Replies are listed 'Best First'.
Re: Re: Re: pack 64 bit int ?
by frankied (Beadle) on Apr 30, 2002 at 18:23 UTC
    (mental note to login before submitting)