#31036 [Fbk->NoF]: decbin returns wrong value

From: Date: Fri, 17 Dec 2004 00:00:13 +0000
Subject: #31036 [Fbk->NoF]: decbin returns wrong value
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-70427@lists.php.net to get a copy of this message
ID: 31036 Updated by: php-bugs@lists.php.net Reported By: stepanov at transchip dot com -Status: Feedback +Status: No Feedback Bug Type: Math related Operating System: Windows PHP Version: 5.0.2 New Comment: No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". Previous Comments: ------------------------------------------------------------------------ [2004-12-09 10:32:50] derick@php.net Please try using this CVS snapshot: http://snaps.php.net/php5-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.0-win32-latest.zip ------------------------------------------------------------------------ [2004-12-09 10:21:47] stepanov at transchip dot com Description: ------------ for number 2155873860<4294967295 decbin returns 1111111111111111111111111111111 Reproduce code: --------------- print decbin(2155873860); Expected result: ---------------- 10000000100000000000011001000100 Actual result: -------------- 1111111111111111111111111111111 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31036&edit=1

« previous php.bugs (#70427) next »