PHP 4.0 Bug #6034 Updated: Simple Addition not correct
| From: | Bug Database | Date: | Wed, 09 Aug 2000 06:34:08 +0000 |
| Subject: | PHP 4.0 Bug #6034 Updated: Simple Addition not correct | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-28217@lists.php.net to get a copy of this message | ||
ID: 6034
Updated by: hholzgra
Reported By: markn@alverstone.com.au
Status: Closed
Bug Type: Scripting Engine problem
Assigned To:
Comments:
_never_ rely on decimal floating point precision when using
a dual/binary based data type (this isn't even language dependant)
converting from decimal fractions to dual fractions and
back almost always results in theese artefacts you got here
if you need absolute precision without rounding then use the
bcmath extension insted
Full Bug description available at: http://bugs.php.net/?id=6034