Wrong exponential notation used in programming mode

Bug #1784274 reported by Martin Rosenau on 2018-07-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-calculator (Ubuntu)
Low
Unassigned

Bug Description

In programming mode the calculator is primarily used for doing integer operations.

However integer results are shown in exponential notation and the result does NOT represent the correct integer!

Example:

- Calculate 2^40.
- The result 1.099511628×10^12 is shown which is the integer 1099511628000
- However the correct result is 1099511627776, not 1099511628000

A possible change which might solve this:

Change the selection:
- Binary
- Octal
- Decimal
- Hexadecimal

To:
- Binary
- Octal
- Scientific decimal
- Programmer decimal
- Hexadecimal

"Scientific decimal" would behave like it does today.
"Programmer decimal" would behave the same way as Binary, Octal and Hexadecimal and display integers like 2^40 as 1099511627776, not as 1.099511628x10^12

Sebastien Bacher (seb128) wrote :

The issue seems an upstream one, could you maybe report it to them as well on https://gitlab.gnome.org/GNOME/gnome-calculator/issues ?

Changed in gnome-calculator (Ubuntu):
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers