Summary: | Operations on Modulus operator were causing other operators to be erroneous | ||
---|---|---|---|
Product: | [Applications] kcalc | Reporter: | Looserof7 <looserof7> |
Component: | general | Assignee: | Evan Teran <evan.teran> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/kcalc/5338befe329357a65f5eb333f921f07ce25de1cd | Version Fixed In: | 16.12.3 |
Sentry Crash Report: |
Description
Looserof7
2017-02-19 03:16:44 UTC
Ah, this is an understandable misunderstanding :-). In kcalc, % is the "percent" operator, not mod! If you want the actual modulus operator, please use the "Mod" button found in both Scientific and Statistic mode (top row, just left of center). For more information on the "percent" operator, please see the manual: https://docs.kde.org/trunk5/en/kdeutils/kcalc/percent.html I'm ain't changing this to unconfirmed, But please reconsider my comment and read it thoroughly, I have already mentioned that Modulus operator gives percentage, My problem is it isn't giving any results when I type in 13 % 2 in kcalc, I don't get any answer, but I get result for same from krunner. @Looserof7, One aspect of your report was that "What I mean to say is using Modulus operator is leading other calculations to be erroneous." While "%" is not the modulus operator in kcalc, it WAS in fact causing subsequent calculations to be wrong. A one line patch to resolve this has been approved, and should fix the next version of kcalc that is released. Thanks for your report :-) Git commit 5338befe329357a65f5eb333f921f07ce25de1cd by Christoph Feck. Committed on 21/02/2017 at 19:41. Pushed by cfeck into branch 'Applications/16.12'. Also reset percent mode when clearing state FIXED-IN: 16.12.3 Differential Revision: https://phabricator.kde.org/D4698 M +1 -0 kcalc_core.cpp https://commits.kde.org/kcalc/5338befe329357a65f5eb333f921f07ce25de1cd |