note 22646 deleted from function.bcdiv by didou

From: Date: Tue, 16 Dec 2003 12:25:29 +0000
Subject: note 22646 deleted from function.bcdiv by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-62043@lists.php.net to get a copy of this message
Note Submitter: tipsen@imada.sdu.dk ---- 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!

« previous php.notes (#62043) next »