#51124 [Bgs]: if we divide 1.48/15000 answer suppose to be 0.0000986666 but wrong ans coming

From: Date: Wed, 24 Feb 2010 09:05:13 +0000
Subject: #51124 [Bgs]: if we divide 1.48/15000 answer suppose to be 0.0000986666 but wrong ans coming
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-148018@lists.php.net to get a copy of this message
 ID:               51124
 User updated by:  davindergsi at yahoo dot com
 Reported By:      davindergsi at yahoo dot com
 Status:           Bogus
 Bug Type:         Math related
 Operating System: Linux
 PHP Version:      6SVN-2010-02-23 (snap)
 New Comment:

we can get the correct results

if we use number_format function


Previous Comments:
------------------------------------------------------------------------

[2010-02-23 13:37:54] pajoye@php.net

.

------------------------------------------------------------------------

[2010-02-23 13:15:50] davindergsi at yahoo dot com

Description:
------------
if we divide 1.48/15000 answer is suppose to be 0.0000986666 but wrong
ans coming



Reproduce code:
---------------
1.48/15000



Expected result:
----------------
0.00009866666

Actual result:
--------------
9.8666666666667E-5


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=51124&edit=1



Thread (4 messages)

« previous php.bugs (#148018) next »