Leading zero in "Programming Mode -> Binary" inserts extra zeros

Bug #1821126 reported by Anton Slooten on 2019-03-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-calculator (Ubuntu)
Undecided
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+git2.cae338ea 352 stable/… canonical✓ -

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> =1000001000001000000001

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.

Anton Slooten (grawkx) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers