Bug 152713

Summary: kcalc doesn't display results
Product: [Applications] kcalc Reporter: FiNeX <finex>
Component: generalAssignee: Klaus Niederkrüger <kniederk>
Status: RESOLVED FIXED    
Severity: normal CC: aacid, zander
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description FiNeX 2007-11-22 15:51:33 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:                Linux

The display of the calc doesn't work well. It returns ever "0" except on the square root, but only if the results have decimals.
I've done some tests:

2+14 -> 0   (it should be 16)
square root -> 0   (it should be 4)
square root -> 0   (it should be 2)
square root -> 1,41421356237   (right)

254+2 -> 0   (it should be 256)
square root -> 0   (it should be 16)
square root -> 0   (it should be 4)
square root -> 0   (it should be 2)
square root -> 1,41421356237   (right)

1+1 -> 0   (it should be 2)
square root -> 1,41421356237   (right)

1+2 -> 0   (it should be 3)
square root -> 1,73205080757   (right)
+1 -> 2,73205080757   (right)

Tested on revision 739996
Comment 1 Richard Moore 2007-11-26 00:45:40 UTC
I have tested all these in trunk and they are not reproducable.
Comment 2 Dirk Mueller 2007-11-26 18:12:59 UTC
are you using x86 or x86_64 ?
Comment 3 András Manţia 2007-11-26 21:53:12 UTC
Checked on x86_64, works fine.
Comment 4 Albert Astals Cid 2007-11-26 22:33:31 UTC
on x86_64 fails here
Comment 5 FiNeX 2007-11-27 00:45:47 UTC
I'm on x86.
Comment 6 Thomas Zander 2007-11-27 14:27:41 UTC
on x86_64 (gutsy) works fine.
Comment 7 Albert Astals Cid 2007-11-27 20:08:57 UTC
I'm on gutsy here too and still does not work.
Comment 8 FiNeX 2007-12-10 17:07:46 UTC
r746468 fixed the problem, in both 64 and 32 bit systems.

Please set this bug as FIXED :-)

Yuhuuuuuuu! :-)
Comment 9 Bram Schoenmakers 2007-12-10 18:12:50 UTC
Marking as fixed per request.