Kcalc gives me a incorrect awnser whenever I am trying to subtract a number by a percenatge. Example #1 - 1600 - 20% Gnome Calculator and Android Calculator = 1280 Kcalc = 1599.8 Example #2 - 1985 - 19.2% Gnome/Android Calc = 1603.88 Kcalc 1984.808 Example #3 - 2580.25 - 32.98% Gnome/Android Calc = 1729.28355 Kcalc = 2579.9802
Also different from google calculator, and wolfram alpha. IMO we should be consistent with the major calculators.
The same applies for percentage additions (also in version 24.05.1): 10+20%=10.2 instead of 12
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kcalc/-/merge_requests/116
Git commit d962db84549160c2eb7196f0a2eba06a0fe93616 by Gabriel Barrantes. Committed on 06/07/2024 at 18:44. Pushed by gabrielbarrantes into branch 'master'. Add "add/subtract percentage" functionality M +20 -1 autotests/kcalc_parser_core_test.cpp M +40 -0 kcalc_core.cpp M +1 -0 kcalc_core.h https://invent.kde.org/utilities/kcalc/-/commit/d962db84549160c2eb7196f0a2eba06a0fe93616
*** Bug 490111 has been marked as a duplicate of this bug. ***
*** Bug 490329 has been marked as a duplicate of this bug. ***
*** Bug 490355 has been marked as a duplicate of this bug. ***
*** Bug 490696 has been marked as a duplicate of this bug. ***
*** Bug 491766 has been marked as a duplicate of this bug. ***
*** Bug 492115 has been marked as a duplicate of this bug. ***