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 708556 - keyboard shortcut to format with 2 decimal places does not work
keyboard shortcut to format with 2 decimal places does not work
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Documentation
git master
Other All
: Normal normal
: ---
Assigned To: Andreas J. Guelzow
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2013-09-21 22:36 UTC by Adam Dingle
Modified: 2013-10-05 19:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Adam Dingle 2013-09-21 22:36:37 UTC
I'm running Gnumeric 1.12.6 on Ubuntu 13.10.

According to the Gnumeric help page Keybinding Reference, the keyboard shortcut Ctrl+! formats the current selection as a number with 2 decimal places.  But if I enter 1.2345 in a cell, select it and press Ctrl+!, I see just "1", formatted with 0 decimals.  So either the documentation or the implementation is wrong.
Comment 1 Andreas J. Guelzow 2013-10-05 04:07:21 UTC
ctrl-! triggers:

static GNM_ACTION_DEF (cb_format_as_number)
{
	GOFormat *fmt = go_format_new_from_XL ("0");
	apply_number_format (wbcg, fmt, _("Format as Number"));
	go_format_unref (fmt);
}

So it looks like this may be a documentation issue rather than an implementation issue.

Note that <control>dollar formats as currency with 2 decimals and 2 decimals is most likely used for currency values.
Comment 2 Morten Welinder 2013-10-05 19:07:49 UTC
Agreed -- documentation problem.
Comment 3 Andreas J. Guelzow 2013-10-05 19:58:40 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.