Excess thousands separators after multiplication
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
NonfreeKernelMo
Package: gcalctool 5.22.0-0ubuntu2
PackageArchitec
ProcEnviron:
PATH=/
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: gcalctool
Uname: Linux 2.6.24-12-generic i686
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. =)