Re: signed int64 pack/unpack [message #184578 is a reply to message #184577] |
Sun, 12 January 2014 02:35 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 1/11/2014 9:18 PM, cameron7(at)gmail(dot)com wrote:
> Hi,
>
> I'm having a bit of trouble figuring out a straightforward way to "pack" / "unpack" a signed int64.
>
> I'm on a 64-bit machine, but the 'i' and 'I' are coming back with 4-byte length. And of course even though double comes back with 8 length it's a floating point and thus loses precision.
>
> Any thoughts? Any help would be greatly appreciated.
>
> BTW, unsigned int64 seems relatively straightforward, but signed int64 has been unusually difficult to figure out.
>
> Thanks
>
You're on a 64 bit machine, but are you using a 64 bit OS and 64 bit PHP?
As for thoughts - how about some detail? What's you code? What do you
expect? What do you get?
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex(at)attglobal(dot)net
==================
|
|
|