Skip to content

Error in percentage calculation #222

@EnriquePG-Noc

Description

@EnriquePG-Noc

What Happened?

When performing an addition or subtraction operation with percentages, the program ignores that it is a percentage.
For example:
100 + 2% = 100.02 (the correct would be 102).
100 - 2% = 99.98 (correct would be 98)

This happens with any number you type.

Steps to Reproduce

  1. I opened the calculator from "Applications".
  2. I typed the numbers from the keyboard, including the symbols.
  3. I get the wrong result.
  4. I enter the values and symbols from the calculator program itself.
  5. I persist with the error.

Expected Behavior

Basically because it is expected to operate with percentages, but what it seems to perform is a decimal operation.

OS Version

6.x (Odin)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions