After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 129706 - engineering notation broken
engineering notation broken
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: General
git master
Other All
: Normal enhancement
: ---
Assigned To: Emmanuel Pacaud
Jody Goldberg
: 324174 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-12-20 01:06 UTC by john Sheahan
Modified: 2006-04-04 19:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Implementation of engineering notation (33.67 KB, patch)
2006-04-02 11:40 UTC, Emmanuel Pacaud
none Details | Review
Improved patch (42.98 KB, patch)
2006-04-04 17:42 UTC, Emmanuel Pacaud
committed Details | Review

Description john Sheahan 2003-12-20 01:06:42 UTC
Engineering notation is a scientific notation varient where the 
exponent is restricted to a multiple-of-3.

This used to be achievable in gnumeric (and excel)  using the custom cell
format
 ##0.0E+0
however that now produces the same output as conventional scientific notation.

for example, enter 0.01 into a cell
format->number->custom->##0.0E+0
preview is  +1.0E-02
but should be +10.0E-03

checked on recent gnumerics, including 1.2.2
Comment 1 Morten Welinder 2005-12-15 14:25:03 UTC
*** Bug 324174 has been marked as a duplicate of this bug. ***
Comment 2 Emmanuel Pacaud 2006-04-02 11:40:53 UTC
Created attachment 62591 [details] [review]
Implementation of engineering notation

Here's a patch that fixes this issue, but non only.

It also adds an engineering notation check box in format dialog.

And it adds a new scientific format with superscript via pango markup, with its corresponding superscripted checkbox in format dialog. UI is disabled by default, but can be enabled with go_format_sel_new_full.
Use case for this format is nice axis labeling in graphs.
Comment 3 Morten Welinder 2006-04-03 15:02:56 UTC
Comment on attachment 62591 [details] [review]
Implementation of engineering notation

Looks good, except for two details.

1. The check button for engineering notation needs a tooltip.

2. The glade file needs to be edited by hand and have the following killed.  (Alternatively, run glade with gtk+ 2.6)

(gnumeric:15327): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
Comment 4 Emmanuel Pacaud 2006-04-04 17:42:46 UTC
Created attachment 62751 [details] [review]
Improved patch

I've commited this improved version of my previous patch.
Comment 5 Morten Welinder 2006-04-04 19:11:33 UTC
It doesn't look like this actually got committed.
Comment 6 Emmanuel Pacaud 2006-04-04 19:19:40 UTC
It's in now.