Excess thousands separators after multiplication

Bug #210004 reported by davidalves
This bug report is a duplicate of:  Bug #208260: Too many commas in gcalctool. Edit Remove
2
Affects Status Importance Assigned to Milestone
gcalctool (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: gcalctool

Using hardy beta with all the latest updates as of 2008-3-31.
gcalctool package version is 5.22.0-0ubuntu2

Steps to reproduce:
1) Open calculator.
2) Enter 500000 (five hundred thousand)
3) Turn on thousands separator (Display now properly shows "500,000")
4) Press multiply button
5) Display now improperly shows "5,000,00*", expected "500,000*"
6) Enter 100
7) Display now improperly shows "5,000,00*,100", expected "500,000*100"
6) Press equals button
7) Display now shows "5,0,0,00,,000", expected "50,000,000"

After steps 3 and 4 I assumed that the thousands separator was just putting a comma after every 3 characters, but I have no idea what's going on after the multiply. Turning the thousands separator on and off after the multiply doesn't get rid of the error.

ProblemType: Bug
Architecture: i386
Date: Mon Mar 31 17:19:55 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/gcalctool
NonfreeKernelModules: nvidia
Package: gcalctool 5.22.0-0ubuntu2
PackageArchitecture: i386
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gcalctool
Uname: Linux 2.6.24-12-generic i686

Tags: apport-bug
Revision history for this message
davidalves (davidalves) wrote :
Revision history for this message
davidalves (davidalves) wrote :

I just realized that 5,0,0,00,,000 is the result of applying the rule "put a comma after ever three characters starting at the right" twice in a row. Also, apologies for the having two step 6s and two step 7s in the steps to reproduce above. Apparently I have bugs too. =)

Revision history for this message
Pedro Villavicencio (pedro) wrote :

looks like bug 208260

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.