Bug 259363 - KCalc problem with powers of mathematical constants
Summary: KCalc problem with powers of mathematical constants
Status: RESOLVED FIXED
Alias: None
Product: kcalc
Classification: Applications
Component: general (show other bugs)
Version: 2.8
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Evan Teran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-09 20:50 UTC by Christian Trippe
Modified: 2010-12-10 03:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Trippe 2010-12-09 20:50:44 UTC
Version:           2.8 (using KDE 4.5.85) 
OS:                Linux

KCalc gives bad result if a sufficiently large rational power of a mathematical
constant (selected from the Constants menu) is computed, e.g:

- select Pi in Constants -> Mathematics
- press x^y
- type 12.5
- press =

and the result is 'inf' while it should be ~ 1638224.47...

same things for other mathematical constants (however, if the constant is typed
in manually, (i.e. not recalled from menu), the result is correct).

This bug was initially reported at https://bugzilla.novell.com/show_bug.cgi?id=658555

Reproducible: Always




OS: Linux (i686) release 2.6.36-89-default
Compiler: gcc
Comment 1 Evan Teran 2010-12-10 02:16:43 UTC
Confirmed, this is odd. I'll take a look at the cause of this.
Comment 2 Evan Teran 2010-12-10 03:49:20 UTC
Fixed (i think) in trunk. I will look into back porting the change into the 4.5 branch if necessary.