[calculator] Doesn't parse decimal point
Bug #1333795 reported by
Felipe Hommen
This bug affects 9 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
One Hundred Scopes |
New
|
Undecided
|
Unassigned | ||
Unity Calculator Scope |
New
|
Undecided
|
Unassigned | ||
unity-scope-calculator (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
When I type a number with decimal point at dash, it simply ignores that character.
For example:
Type 1.1+1
Result: 12
Expected: 2.1
Type 1,1+1
Result: 12
Expected: 2,1
Type 3.14*2
Result: 628
Expected: 6.28
Type 3,14*2
Result: 628
Expected: 6,28
I type both "." and "," as decimal separator character, because I use spanish localization and spanish decimal character is "," instead of "".
Calculator application work as expected.
Related branches
lp://staging/~felihommen/unity-scope-calculator/fix
Ready for review
for merging
into
lp://staging/unity-scope-calculator
- Submarine: Pending requested
-
Diff: 45 lines (+9/-10)1 file modifiedsrc/unity_calculator_daemon.py (+9/-10)
Changed in unity-scope-calculator (Ubuntu): | |
importance: | Undecided → Medium |
To post a comment you must log in.
Hi and thanks for the report, which version of Ubuntu are you using?
Does it also happen when you type "calc:3,14*2" ? What about "calc:pi*2" ?