php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30290 float comparison doesn't work
Submitted: 2004-09-30 12:43 UTC Modified: 2004-09-30 14:16 UTC
From: tech at mediaforest dot net Assigned:
Status: Not a bug Package: *Math Functions
PHP Version: 4.3.8 OS: Linux Debian 3
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tech at mediaforest dot net
New email:
PHP Version: OS:

 

 [2004-09-30 12:43 UTC] tech at mediaforest dot net
Description:
------------
When comparing two floats php find them different
Bug already reported but not solved :
Bug #17984, Bug #25936, Bug #17282, Bug #23780,   


Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-30 14:16 UTC] derick@php.net
Floating point values have a limited precision. Hence a value might 
not have the same string representation after any processing. That also
includes writing a floating point value in your script and directly 
printing it without any mathematical operations.
 
Thank you for your interest in PHP.

.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Nov 24 01:01:24 2020 UTC