emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Moe <mail@christianmoe.com>
To: emacs-orgmode@gnu.org
Subject: Re: [feature] Allow "," decimal point in table cells (was: org-table with different conventions: decimals)
Date: Wed, 20 Jul 2022 16:00:31 +0200	[thread overview]
Message-ID: <87wnc7zxxc.fsf@christianmoe.com> (raw)
In-Reply-To: <87fsiw4gke.fsf@localhost>

Ihor Radchenko writes:

> 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

That's interesting.

I remember an earlier discussion that settled on the recommendation to
keep the spreadsheet as it is and use export-hooks if one needs to
change the decimal separator upon export. My contribution to the
discussion also gave Carsten the idea of starting a Worg page called
org-madness.org. :-).

Thread started here:

But I don't think we considered the possibility of a flag to make Org
translate dot-separated decimals into comma-separated ones for
Calc. That could offer more fine-grained control than export processing
when you need some dots to stay dots. And it would certainly be less
challenging for users who just want things to work without digging into
advanced export options!

Export processing (which has since become more fine-grained with the
introduction of filters) remains an option, though, and some backends
offer further possibilities.


      parent reply	other threads:[~2022-07-20 14:02 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     ` [feature] Allow "," decimal point in table cells (was: org-table with different conventions: decimals) Ihor Radchenko
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       ` Christian Moe [this message]

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:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wnc7zxxc.fsf@christianmoe.com \
    --to=mail@christianmoe.com \
    --cc=emacs-orgmode@gnu.org \


* 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 public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).