From: Ihor Radchenko <yantar92@gmail.com>
To: Uwe Brauer <oub@mat.ucm.es>
Cc: emacs-orgmode@gnu.org
Subject: [feature] Allow "," decimal point in table cells (was: org-table with different conventions: decimals)
Date: Wed, 20 Jul 2022 11:18:57 +0800 [thread overview]
Message-ID: <87fsiw4gke.fsf@localhost> (raw)
In-Reply-To: <87fsix6uaq.fsf@mat.ucm.es>
Uwe Brauer <oub@mat.ucm.es> writes:
>> Uwe Brauer <oub@mat.ucm.es> writes:
>
>> Org tables use Emacs' calc under the hood by default.
>> AFAIK, calc is unable to use "," as decimal point because it is reserved
>> as a vector separator. Which is why you got the vector addition in your
>> example.
>
> Thanks. I was afraid that the issue was with calc not with org-mode.
Note that you can instead use Elisp formulas. See 3.5.3 Emacs Lisp forms
as formulas. It is more flexible.
Alternatively, we may implement the comma separators as a built-in
feature. Org table formulas already support notations like
| 3,5 | 4,2 | 7 |
#+TBLFM: $3=$1+$2;N
or
#+TBLFM: $3=$1+$2;E
#+TBLFM: $3=$1+$2;L
(see 3.5.2 Formula syntax for Calc)
we may as well implement something like ";Nc" that will interpret cells
as numbers with "," as decimal point separator.
Is there such a demand?
Best,
Ihor
next prev parent reply other threads:[~2022-07-20 3:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-18 6:57 org-table with different conventions: decimals Uwe Brauer
2022-07-18 23:02 ` Juan Manuel Macías
2022-07-19 6:20 ` [export to CSV] (was: org-table with different conventions: decimals) Uwe Brauer
2022-07-19 11:07 ` [export to CSV] Juan Manuel Macías
2022-07-19 13:31 ` org-table with different conventions: decimals Ihor Radchenko
2022-07-19 14:39 ` Uwe Brauer
2022-07-20 3:18 ` Ihor Radchenko [this message]
2022-07-20 5:56 ` [feature] Allow "," decimal point in table cells Uwe Brauer
2022-07-20 13:19 ` Ihor Radchenko
2022-07-20 14:00 ` [feature] Allow "," decimal point in table cells (was: org-table with different conventions: decimals) Christian Moe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fsiw4gke.fsf@localhost \
--to=yantar92@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=oub@mat.ucm.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.