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

Reply via email to