https://bugs.kde.org/show_bug.cgi?id=432377
Bug ID: 432377 Summary: KRunner calculator wrongly interpret hex numbers starting with digit as multiplication Product: krunner Version: 5.20.5 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: calculator Assignee: alexander.loh...@gmx.de Reporter: w01dn...@gmail.com CC: plasma-b...@kde.org Target Milestone: --- SUMMARY KRunner's calculator seems interpret hex numbers starting with digit as a multiplication leading to zero result. STEPS TO REPRODUCE 1. Open KRunner 2. Type `=0x20` OBSERVED RESULT 0 EXPECTED RESULT 32 SOFTWARE/OS VERSIONS Operating System: openSUSE Tumbleweed 20210130 KDE Plasma Version: 5.20.5 KDE Frameworks Version: 5.78.0 Qt Version: 5.15.2 Kernel Version: 5.10.9-1-default OS Type: 64-bit ADDITIONAL INFORMATION It seems krunner's calculator may interpret `x` as multiplication, e.g. `=4x5`->`20`. If this is needed for anyone, still `0x4` as multiplication is pointless, so IMHO, it's better to keep `0x` prefix just for hex numbers and interpret `x` as multiplication only when there is non-zero value before `x`. -- You are receiving this mail because: You are watching all bug changes.