Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong (opposite) results of dividing when using denominators with exponents #228

Open
Ondra336 opened this issue Sep 29, 2024 · 0 comments

Comments

@Ondra336
Copy link

For unknown reason, MATE calculator is giving totally "opposite"*** results when dividing using denominators with exponents (e.g. 1x10^-2 or 1x10^2). When the same denominators are written using numeric notation (e.g. 0.01 or 100), the results are right - see picture below.

***) "opposite" = results like the exponents were exchanged, i.e. like it was using positive version of negative exponents and vice versa.

Expected behaviour

1x10^3 / 1x10^-2 = 1x10^5 (ie. 100000)
1x10^3 / 1x10^2 = 10

Actual behaviour

1x10^3 / 1x10^-2 = 10
1x10^3 / 1x10^2 = 100000

(when you use comma-notation, the result is right: 1000 / 0.01 = 100000, or 1000 / 100 = 10)

Steps to reproduce the behaviour

Dividing by any number with exponent

MATE general version

mate-calc package installed on Ubuntu (1.26.0-1build2)

Package version

MATE Calculator 1.26.0 (but I noticed the same error also in earlier version)

Linux Distribution

Ubuntu 24.04.1 LTS

Illustration of error - each two adjacent rows of history contain equivalent notations, however produce different results:
MATE_calc_ERRORS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant