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

Bug #1821126 reported by Anton Slooten
6
This bug affects 1 person
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+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.

Revision history for this message
Anton Slooten (grawkx) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue looks like https://gitlab.gnome.org/GNOME/gnome-calculator/issues/101 which got resolved with newer updates

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.