Summary: | Multiplications with x (instead of *) append x to the result | ||
---|---|---|---|
Product: | [Plasma] krunner | Reporter: | Albert Astals Cid <aacid> |
Component: | calculator | Assignee: | Alexander Lohnau <alexander.lohnau> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alexander.lohnau, christophe, kde |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/commit/668feb3e17809f3da0f1a2b6a36b95d970d7e694 | Version Fixed In: | 5.20 |
Description
Albert Astals Cid
2015-07-09 21:09:01 UTC
When I now enter =5779x3691 I just get no result whatsoever. Still valid. Additionally, '=3×2' returns garbage >Additionally, '=3×2' returns garbage
Well it depends on how you interpret the x. The engine thinks of x as a variable, consequently the statement 3x2 gets interpreted as 3*x*2.
But from a usability point of view the bug makes sense, I will look into writing a patch :-).
This is not 'x' but '×'. Behavior probably depends on whether the calculator runner is compiled against libqalculate or plain javascript. A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/163 Git commit 668feb3e17809f3da0f1a2b6a36b95d970d7e694 by Nate Graham, on behalf of Alexander Lohnau. Committed on 04/08/2020 at 00:53. Pushed by ngraham into branch 'master'. Allow x and multiplication symbol instead of * FIXED-IN: 5.20 This will allow us to run queries like: 4x4 4x4,2 4x,2 But if we explicitly want the x to be interpreted as a variable by qalculate we can run: =4x*4 M +23 -1 runners/calculator/calculatorrunner.cpp M +1 -0 runners/calculator/calculatorrunner.h https://invent.kde.org/plasma/plasma-workspace/commit/668feb3e17809f3da0f1a2b6a36b95d970d7e694 |