Bug 423105

Summary: Krunner calculator simplifies very large number in scientific notation as 1.
Product: [Plasma] krunner Reporter: Kishore Gopalakrishnan <kishore96>
Component: calculatorAssignee: Kai Uwe Broulik <kde>
Status: CONFIRMED ---    
Severity: minor CC: justin.zobel, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.19.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Kishore Gopalakrishnan 2020-06-17 13:22:17 UTC
SUMMARY
If we input a very large number in scientific notation (NeNNNNNNNN), the calculator in krunner displays the answer as 1.

STEPS TO REPRODUCE
1. In krunner, type `1e578667867867=`

OBSERVED RESULT
Answer is shown as '1'

EXPECTED RESULT
'infinity', 'overflow', or something similar should be displayed.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.19.1
KDE Frameworks Version: 5.71.0
Qt Version: 5.15.0
Kernel Version: 5.7.2-arch1-1
Comment 1 Justin Zobel 2020-11-22 03:57:36 UTC
Confirmed on:
Operating System: openSUSE Tumbleweed 20201119
KDE Plasma Version: 5.20.3
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.1