GNOME Bugzilla – Bug 587669
MOD operation returns the wrong value (when using huge numbers)
Last modified: 2010-04-09 01:40:21 UTC
Please describe the problem: When I perform some operation using the 'modulus' division (%) with huge numbers, I often obtain wrong results. Here, I give an example: "2^1000 Mod 3" returns an 86-digit result!! Obviously, it is not the correct answer (the result must be: 0<=result<=2) Steps to reproduce: 1. Type "2^1000 Mod 3" 2. Press "ENTER" Actual results: The result is not correct: it can not be a number of 86-digit! Expected results: As a result, I expect a number n, such that 0<=n<=2, because I use (mod 3). Does this happen every time? Yes Other information:
Also reported in Ubuntu: https://bugs.launchpad.net/ubuntu/+source/gcalctool/+bug/394724
*** This bug has been marked as a duplicate of bug 611970 ***