Wrong exponential notation used in programming mode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-calculator (Ubuntu) |
New
|
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
The issue seems an upstream one, could you maybe report it to them as well on https:/ /gitlab. gnome.org/ GNOME/gnome- calculator/ issues ?