#43053 [NEW]: Scientific notation
From: owner at dragon-hearts dot net
Operating system: Centos4
PHP version: 5.2.4
PHP Bug Type: Math related
Bug description: Scientific notation
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 bug report at http://bugs.php.net/?id=43053&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43053&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43053&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43053&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43053&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43053&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=43053&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=43053&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=43053&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=43053&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=43053&r=support
Expected behavior: http://bugs.php.net/fix.php?id=43053&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=43053&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=43053&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43053&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43053&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43053&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=43053&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=43053&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=43053&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=43053&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=43053&r=mysqlcfg
Thread (39 messages)
- owner at dragon-hearts dot net
- iliaa@php.net#43053 [Opn->Fbk]: Scientific notation
- owner at dragon-hearts dot net#43053 [Fbk->Opn]: Scientific notation
- jani@php.net#43053 [Opn->Csd]: Scientific notation
- owner at dragon-hearts dot net#43053 [Csd->Opn]: Scientific notation
- rbro at hotmail dot com#43053 [Com]: Scientific notation
- jani@php.net#43053 [Opn]: Scientific notation
- jani@php.net#43053 [Opn->Ver]: Scientific notation
- tony2001@php.net#43053 [Ver]: Scientific notation
- owner at dragon-hearts dot net#43053 [Ver]: Scientific notation
- rbro at hotmail dot com#43053 [Com]: Scientific notation
- owner at dragon-hearts dot net#43053 [Ver]: Scientific notation
- theo at lomasdavies dot net#43053 [Com]: Scientific notation
- craig at craigmayhew dot com#43053 [Com]: Scientific notation
- owner at dragon-hearts dot net#43053 [Ver]: Scientific notation
- ross at newgrounds dot com#43053 [Com]: Scientific notation
- owner at dragon-hearts dot net#43053 [Ver]: Scientific notation
- daniel at fanetworks dot net#43053 [Com]: Scientific notation
- nate at recoverydatabase dot net#43053 [Com]: Scientific notation
- walter@php.net#43053 [Ver]: Scientific notation
- gcleaves at yahoo dot com dot au#43053 [Com]: Scientific notation
- lhfagundes at gmail dot com#43053 [Com]: Scientific notation
- tech at dragonara dot net#43053 [Com]: Scientific notation
- rbro at hotmail dot com#43053 [Com]: Scientific notation
- admin at vr-realty dot com#43053 [Com]: Scientific notation
- ali at adcworks dot com#43053 [Com]: Scientific notation
- marek dot chodor at gmail dot com#43053 [Com]: Scientific notation
- rbro at hotmail dot com#43053 [Com]: Scientific notation
- int-e at gmx dot de#43053 [Com]: Scientific notation
- rbro at hotmail dot com#43053 [Com]: Scientific notation
- sweiss at stylesight dot com#43053 [Com]: Scientific notation
- admin at shadowops dot net#43053 [Com]: Scientific notation
- int-e at gmx dot de#43053 [Com]: Scientific notation
- jani@php.net#43053 [Ver->Ctl]: [PATCH] Regression: some numbers shown in scientific notation
- owner at dragon-hearts dot net#43053 [Ctl]: [PATCH] Regression: some numbers shown in scientific notation
- int-e at gmx dot de#43053 [Com]: [PATCH] Regression: some numbers shown in scientific notation
- johannes@php.net#43053 [Ctl]: [PATCH] Regression: some numbers shown in scientific notation
- dmitry@php.net#43053 [Ctl->Csd]: [PATCH] Regression: some numbers shown in scientific notation
- dmitry@php.net#43053 [Csd]: [PATCH] Regression: some numbers shown in scientific notation