RE: bigmath
- Posted by Matthew Lewis <matthewwalkerlewis at YAHOO.COM> Nov 11, 2002
- 374 views
> From: Kat [mailto:kat at kogeijin.com] > Oh. I didn't get any feedback from you on it, can you send me > what caused > errors, please, so i can track them down? That was plainly labeled > prerelease, i hope no one was relying on it. Sorry for not getting back to you, I was a little too focused (and frustrated) on getting the guts of my lib to work. Here's a division example. Actually, it errors out on the line where you try to strip out the decimal before returning (BTW, 31600001 and 31600039 are both prime, and 998561264000039 is their product--you can actually test this one with atoms) : 998561264000039 / 31600001 = bigmath: 31600039 Kat: 3 998561264000039 / 31600039 = bigmath: 31600001 Kat: 3 Subtraction (I haven't looked too closely at this, but the digits are mostly right--there seems to be some periodicity to the discrepancies): 992843955998047072709347710023082885682999253386849704500005269311072880491 - 998561264000039 = bigmath:99284395599804707270934771002308288568299925338684970450000427074980 8880452 Kat: 991843855988046072609337709022982875681999153376848704499994270749808880452 Off X X X X X X XX XX X X X X X XXXXX I didn't test against non-integers (most of the stuff I did uses integers). Matt Lewis