Bug 489027 - Doesn't subtract percentages correctly
Summary: Doesn't subtract percentages correctly
Status: CONFIRMED
Alias: None
Product: kcalc
Classification: Applications
Component: general (show other bugs)
Version: 24.05.0
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: Gabriel Barrantes
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2024-06-23 07:36 UTC by cinman71481@gmail.com
Modified: 2024-07-01 19:59 UTC (History)
4 users (show)

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 cinman71481@gmail.com 2024-06-23 07:36:43 UTC
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
Comment 1 fanzhuyifan 2024-06-24 01:51:23 UTC
Also different from google calculator, and wolfram alpha. IMO we should be consistent with the major calculators.
Comment 2 Stefano 2024-07-01 19:59:46 UTC
The same applies for percentage additions (also in version 24.05.1):
10+20%=10.2 instead of 12