emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: Uwe Brauer <oub@mat.ucm.es>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-table with different conventions: decimals
Date: Tue, 19 Jul 2022 21:31:11 +0800	[thread overview]
Message-ID: <87y1wp44bk.fsf@localhost> (raw)
In-Reply-To: <87zgh6gb78.fsf@mat.ucm.es>

Uwe Brauer <oub@mat.ucm.es> writes:

> In my current setting, the following works
>
> | 3.5 | 4.2 | 7.7 |
> #+TBLFM: $3=$1+$2
>
> Now if I want to switch to the convention used in Germany (that might be
> relevant if I want to export it later to csv, but this is a different
> topic) does work in a strange way, any comments? I would expect
>
> | 3,5 | 4,2 | (7, 7) |
> #+TBLFM: $3=$1+$2
>
>
> | 3,5 | 4,2 | 7,7    |
> #+TBLFM: $3=$1+$2

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.

Best,
Ihor


  parent reply	other threads:[~2022-07-19 14:07 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 ` Ihor Radchenko [this message]
2022-07-19 14:39   ` org-table with different conventions: decimals 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       ` [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

  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=87y1wp44bk.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).