php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4309 error in handling garbage value..
Submitted: 2000-05-03 21:14 UTC Modified: 2002-09-30 19:53 UTC
From: refract at dreamwiz dot com Assigned:
Status: Not a bug Package: Other
PHP Version: 3.0.16 OS: win2000 & IBM AIX
Private report: No CVE-ID: None
 [2000-05-03 21:14 UTC] refract at dreamwiz dot com
echo "echo (0.04-0.03-0.01); ===>";
echo (0.04-0.03-0.01);
echo "<BR>\n";
echo "echo (0.03-0.01-0.01-0.01); ===>";
echo (0.03-0.01-0.01-0.01);
echo "<BR>\n";
-------------------------------------------
output

echo (0.04-0.03-0.01); ===>1.7347234759768E-018
echo (0.03-0.01-0.01-0.01); ===>-3.4694469519536E-018
-------------------------------------------



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-30 19:53 UTC] hholzgra@php.net
thats how floats work, see e.g.

http://www.php.net/manual/en/language.types.float.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC