note 22646 added to function.bcdiv
| From: | tipsen at imada dot sdu dot dk | Date: | Tue, 25 Jun 2002 23:07:04 +0000 |
| Subject: | note 22646 added to function.bcdiv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32200@lists.php.net to get a copy of this message | ||
It seems like the scaling not only applies to the final result but also to the inputarguments!
According to the results above, we have:
correct: 105/6.55957 = 16.007146809928
correct: 105/6.55 = 16.030534351145
bcdiv(105, 6.55957, 2) = 16.03
which is clearly the result when 105 is divided by 6.55 - so it seems like "insignificant"
decimals/digits are perhaps being cut off from the inputargument as well as from the final result
yielding wrong solutions!
--
http://www.php.net/manual/en/function.bcdiv.php
http://master.php.net/manage/user-notes.php?action=edit+22646
http://master.php.net/manage/user-notes.php?action=delete+22646
http://master.php.net/manage/user-notes.php?action=reject+22646