Re: [PHP] Working with internal data formats

2008-05-15 Thread Robin Vickery
On 15/05/2008, John Gunther <[EMAIL PROTECTED]> wrote: > Iv Ray wrote: > > > John Gunther wrote: > > > What technique can I use to take an 8-byte double precision value, as > > > stored internally, and assign its value to a PHP float variable without > > > having the bytes misinterpreted as a ch

Re: [PHP] Working with internal data formats

2008-05-15 Thread Iv Ray
John Gunther wrote: > Example: I extract the 8 bytes 40 58 FF 5C 28 F5 C2 8F from > an external file You mean you "extract" "40 58 FF 5C 28 F5 C2 8F", so to speak, as a string, right? Sorry, for asking, but somehow I do not the case. -- -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Working with internal data formats

2008-05-15 Thread Robert Cummings
On Thu, 2008-05-15 at 10:33 -0400, John Gunther wrote: > Iv Ray wrote: > > John Gunther wrote: > > > What technique can I use to take an 8-byte double precision value, as > > > stored internally, and assign its value to a PHP float variable without > > > having the bytes misinterpreted as a cha

Re: [PHP] Working with internal data formats

2008-05-15 Thread John Gunther
Iv Ray wrote: John Gunther wrote: > What technique can I use to take an 8-byte double precision value, as > stored internally, and assign its value to a PHP float variable without > having the bytes misinterpreted as a character string. Does it get misinterpreted, or do you just want to be su

Re: [PHP] Working with internal data formats

2008-05-15 Thread Iv Ray
John Gunther wrote: > What technique can I use to take an 8-byte double precision value, as > stored internally, and assign its value to a PHP float variable without > having the bytes misinterpreted as a character string. Does it get misinterpreted, or do you just want to be sure? The documenta

[PHP] Working with internal data formats

2008-05-15 Thread John Gunther
What technique can I use to take an 8-byte double precision value, as stored internally, and assign its value to a PHP float variable without having the bytes misinterpreted as a character string. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.