Bug 94265

Summary: Wrong answer from mod with floats KCALC
Product: [Applications] kcalc Reporter: thaper <thaper>
Component: generalAssignee: Klaus Niederkrüger <kniederk>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version First Reported In: 1.6   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description thaper 2004-12-02 07:59:26 UTC
Version:           1.6 (using KDE KDE 3.3.1)
Installed from:    Gentoo Packages
Compiler:          gcc 3.3.4 
OS:                Linux

I was trying RSA examples and...

8^17 mod 77 = 57 
so: 
57^53 mod 77 = 8 

(8 is the correct answer) and this works with other calcs.

Kcalc answers with 68... not 8

other examples of faulty mod ops w/ large numbers are true also.
Comment 1 John Tapsell 2005-01-30 01:45:28 UTC

*** This bug has been marked as a duplicate of 34765 ***