Allow alternative exponential notation that doesn't require brackets

Bug #739880 reported by John Wendt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GCalctool
Expired
Wishlist
gcalctool (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

Binary package hint: gcalctool

3×10⁵÷2×10³ = 1.5×10⁸

(3×10⁵)÷(2×10³) = 1.5×10²

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: gcalctool 5.32.0-0ubuntu4
ProcVersionSignature: Ubuntu 2.6.35-28.49-generic 2.6.35.11
Uname: Linux 2.6.35-28-generic i686
Architecture: i386
Date: Mon Mar 21 21:19:35 2011
ExecutablePath: /usr/bin/gcalctool
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
SourcePackage: gcalctool

Revision history for this message
John Wendt (jmw-41soft) wrote :
Revision history for this message
John Wendt (jmw-41soft) wrote :

Expanding the description:

3×10⁵÷2×10³ is rendered as 1.5×10⁸, that is the exponents are added rather than being subtracted,

Using parentheses, (3×10⁵)÷(2×10³), produces the correct answer, 1.5×10².

Is this a bug or a feature? :-)

Revision history for this message
Robert Ancell (robert-ancell) wrote :

It is the correct behaviour, as it matches mathematically correct syntax. It is however annoying for users, so it would be nice to have some sort of solution. The options are some sort of E notation (e.g. 1E5) as long as it can be unambiguous.

Changed in gcalctool (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Changed in gcalctool:
importance: Unknown → Wishlist
status: Unknown → Confirmed
Changed in gcalctool (Ubuntu):
importance: Medium → Wishlist
summary: - Dividing sci notation w/o parens adds exponents vice subtract
+ Allow alternative exponential notation that doesn't require brackets
Changed in gcalctool:
status: Confirmed → Expired
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.