Leading zero in "Programming Mode -> Binary" inserts extra zeros
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-calculator (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
This bug is about inputting data in "Programming Mode -> Binary mode" in the gnome-calculator snap.
1)
Description: Ubuntu 18.10
Release: 18.10
2) - Its the default snap - so I guess this?
gnome-calculator 3.32.0+
3)
When inputting data in binary format, you should be able to lead with an arbitrary amount of zeros. When accepting the input (by pressing enter, or clicking equals) the answer should be the value you entered (less the leading zero)
01001 <press enter> = 1001
010101001 <press enter> = 10101001
4)
I you lead your input with zeros and input more than 2 digits (with an obvious '1' being in there) there is a large quantity of inserted zero's in the output, obviously making the value totally different to what you input.
For instance the input:
01001 <press enter> = 1000000001
010101001 <press enter> =10000010000010
However leading with a 1 produces the correct result:
100000100000 <press enter> = 100000100000
The obvious answer is do not lead with a zero. But monkey see monkey do when inputting data.
The issue looks like https:/ /gitlab. gnome.org/ GNOME/gnome- calculator/ issues/ 101 which got resolved with newer updates