Re: 64bit IEEE format number[Scanned]
| From: | ben | Date: | Mon, 21 Oct 2002 11:55:23 +0000 |
| Subject: | Re: 64bit IEEE format number[Scanned] | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120719@lists.php.net to get a copy of this message | ||
I've written a function to do it. Seems to work OK.
"Michael Egan" <MEgan@3tc.org.uk> wrote in message
news:9926D602EE82FB4FB203E442253043C402FDC8@snip-exch.snipdom.co.uk...
Have you tried the base_convert or octdec functions?
Michael Egan
-----Original Message-----
From: ben [mailto:duffy_ben@hotmail.com]
Sent: 21 October 2002 08:42
To: php-general@lists.php.net
Subject: [PHP] 64bit IEEE format number[Scanned]
I hope someone can help,
Is there a function to convert an 8 byte value read from a file into a real
number ?
I have tried using the built-in functions, but get meaningless answers.
I need to convert for example 00 00 00 00 00 20 5c 40 into the value 112.5
Any help would be welcome.
Thanks.
Ben Duffy.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php