|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47865 muliplication problem with 0.3
Submitted: 2009-04-01 16:36 UTC Modified: 2009-04-01 16:40 UTC
From: pelhamny at gmail dot com Assigned:
Status: Not a bug Package: Math related
PHP Version: 5.2.9 OS: i5/OS
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: pelhamny at gmail dot com
New email:
PHP Version: OS:


 [2009-04-01 16:36 UTC] pelhamny at gmail dot com
There appears to be a bug when multiplying by 0.3
I only tested this under i5/OS.

Reproduce code:
$tax = 90 * 0.3;
echo $tax;

ALSO with same results:

$tax = (float)(90 * 0.3);
echo $tax;

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-01 16:40 UTC]
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Jul 06 05:05:45 2022 UTC