|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-09-10 07:20 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 09 20:00:02 2025 UTC |
Hi friends, Please try following PHP code: <? $a=unpack("dx",pack("d",3.1415926)); print($a["x"]); ?> It's supposed to be "3.1415926", but it return "6.3886672646707E-315". It seems the problem appears in all versions of PHP4, includes PHP 4.0, PHP 4.0.1, PHP 4.0.1 pl2 and PHP 4.0.2, under Windows 98 environment. Thanks & Regards, Edward Zhang