#43053 [Opn->Fbk]: Scientific notation
From: iliaa@php.net Date: Sun, 21 Oct 2007 15:29:38 +0000 Subject: #43053 [Opn->Fbk]: Scientific notation References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-118785@lists.php.net to get a copy of this message
ID: 43053 Updated by: iliaa@php.net Reported By: owner at dragon-hearts dot net -Status: Open +Status: Feedback Bug Type: Math related Operating System: Centos4 PHP Version: 5.2.4 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows (zip): http://snaps.php.net/win32/php5.2-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.2-win32-installer-latest.msi Works fine for me Previous Comments: ------------------------------------------------------------------------ [2007-10-20 15:41:28] owner at dragon-hearts dot net Description: ------------ When using mathematical processes on numbers over 1 million the result comes out in scientific notation instead of as a normal integer. Tested on PHP 5.2.1 it works as expected on 5.2.2 and above it doesn't. I checked the change log and nothing is mentioned about this. Reproduce code: --------------- $var1=1; $var2=7000000; echo $var1*$var2; Expected result: ---------------- 7000000 Actual result: -------------- 7E+6 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43053&edit=1
Thread (39 messages)
- #43053 [Opn->Fbk]: Scientific notation
- #43053 [Fbk->Opn]: Scientific notation
- #43053 [Opn->Csd]: Scientific notation
- #43053 [Csd->Opn]: Scientific notation
- #43053 [Com]: Scientific notation
- #43053 [Opn]: Scientific notation
- #43053 [Opn->Ver]: Scientific notation
- #43053 [Ver]: Scientific notation
- #43053 [Ver]: Scientific notation
- #43053 [Com]: Scientific notation
- #43053 [Ver]: Scientific notation
- #43053 [Com]: Scientific notation
- #43053 [Com]: Scientific notation
- #43053 [Ver]: Scientific notation
- #43053 [Com]: Scientific notation
- #43053 [Ver]: Scientific notation
- #43053 [Com]: Scientific notation
- #43053 [Com]: Scientific notation
- #43053 [Ver]: Scientific notation
- #43053 [Com]: Scientific notation
- #43053 [Com]: Scientific notation
- #43053 [Com]: Scientific notation
- #43053 [Com]: Scientific notation
- #43053 [Com]: Scientific notation
- #43053 [Com]: Scientific notation
- #43053 [Com]: Scientific notation
- #43053 [Com]: Scientific notation
- #43053 [Com]: Scientific notation
- #43053 [Com]: Scientific notation
- #43053 [Com]: Scientific notation
- #43053 [Com]: Scientific notation
- #43053 [Com]: Scientific notation
- #43053 [Ver->Ctl]: [PATCH] Regression: some numbers shown in scientific notation
- #43053 [Ctl]: [PATCH] Regression: some numbers shown in scientific notation
- #43053 [Com]: [PATCH] Regression: some numbers shown in scientific notation
- #43053 [Ctl]: [PATCH] Regression: some numbers shown in scientific notation
- #43053 [Ctl->Csd]: [PATCH] Regression: some numbers shown in scientific notation
- #43053 [Csd]: [PATCH] Regression: some numbers shown in scientific notation
| « previous | php.bugs (#118785) | next » |
|---|