Menu

#2 Strange bug using bcdiv

open
nobody
None
5
2013-03-25
2013-03-25
Christian
No

Hello, I discovered a strange bug when dividing 2 numbers. The following call returns an invalid result:

bcdiv(19.9115044200, 0.9999990300, 10) = 10.9115237041

When using my calculator, the division should in fact be 19.911523741. I debugged through the code half a day but I wasn't able to find the bug itself. I used the source from your svn...

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.