emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] comma as decimal point: bug?


From: Rainer Thiel
Subject: [O] comma as decimal point: bug?
Date: Sun, 26 Aug 2012 15:54:21 +0200

I have seen that as of v. 7.9, org tables are supposed to accept
commas as decimal points which is useful if you set up tables to be
used in in files where continental conventions are expected to be
followed.

But I cannot see this really works.  I should have expected that the
following two tables should provide the same result:

-->
| Items  | Price |
|--------+-------|
| Item 1 |  15.3 |
| Item 2 |   2.3 |
|--------+-------|
| Sum    |  17.6 |
#+TBLFM: @4$2=vsum(@address@hidden)

| Items  | Price |
|--------+-------|
| Item 1 |  15,3 |
| Item 2 |   2,3 |
|--------+-------|
| Sum    |    23 |
#+TBLFM: @4$2=vsum(@address@hidden)
<--

As you can see, the outcome is quite different, and wrong when commas
are used instead of decimal points.

The value of org-table-number-regexp should be the standard value in org 7.9:

-->
org-table-number-regexp is a variable defined in `org-table.el'.
Its value is
"^\\([<>]?[-+^.,0-9]*[0-9][-+^.,0-9eEdDx()%:]*\\|\\(0[xX]\\)[0-9a-fA-F]+\\|nan\\)$"
<--

Am I doing wrong something here, or is this a bug in org 7.9?

Best regards, and many thanks in advance

Rainer
-- 
Prof. Dr. Rainer Thiel
Institut für Altertumswissenschaften
07737 Jena, Germany (EU)
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]