[PHP-DEV] Bug #14796 Updated: error in calculating with minus

2002-01-02 Thread bate

ID: 14796
Updated by: bate
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: *General Issues
Operating System: suse linux 7.1
PHP Version: 4.1.0
New Comment:

Its tested with 4.1.1

I tested with 
128.1 - 128.0

I think this error just occours if the result 1.0 and the numbers =128.0.



Previous Comments:


[2002-01-02 07:20:10] [EMAIL PROTECTED]

php allways returns after echo 166.3 - 166.6;

-0.28

but the right result is -0.3

is there a fix for this problem?

thanx

-OLIMAC





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14796 Updated: error in calculating with minus

2002-01-02 Thread jimw

ID: 14796
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: *General Issues
Operating System: suse linux 7.1
PHP Version: 4.1.0
New Comment:

floating point numbers are not exact. see 
http://www.php.net/manual/en/language.types.float.php

Previous Comments:


[2002-01-02 07:30:29] [EMAIL PROTECTED]

Its tested with 4.1.1

I tested with 
128.1 - 128.0

I think this error just occours if the result 1.0 and the numbers =128.0.





[2002-01-02 07:20:10] [EMAIL PROTECTED]

php allways returns after echo 166.3 - 166.6;

-0.28

but the right result is -0.3

is there a fix for this problem?

thanx

-OLIMAC





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]