all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Sebastien Vauban <sva-news@mygooglest.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG] Table not recomputed (incorrect results)
Date: Tue, 10 Sep 2013 05:44:17 +0200	[thread overview]
Message-ID: <9C939351-40D7-4E6F-8CE1-CDC30227E006@gmail.com> (raw)
In-Reply-To: <86a9jlflul.fsf@somewhere.org>

[-- Attachment #1: Type: text/plain, Size: 1720 bytes --]


On 10.9.2013, at 04:32, "Sebastien Vauban" <sva-news@mygooglest.com> wrote:

> Hello,
> 
> I'm loosing my latin with the following table, which Org declares as
> "converged" or "already stable".
> 
> --8<---------------cut here---------------start------------->8---
> #+TITLE:     Birthday
> 
> * Commande
> 
> | mini sandwiches                 | 261 | 1.00 | 260.00 |
> | rauwkostchotels                 |   2 |  36. |  72.00 |
> | koude hapjes                    | 130 |      |   0.00 |
> | dessertjes (in hapjes glaasjes) |  90 |    3 |   0.00 |
> |---------------------------------+-----+------+--------|
> | total                           |     |      |   332. |
> #+TBLFM: $4=$2*$3;%.2f::@2$3=30*1.2::@5$4=vsum(@1..@-1)
> 
> Total paid: *580 EUR*...
> --8<---------------cut here---------------end--------------->8---
> 
> Obviously, if you look at the amounts, it isn't correct...
> 

Hi Sebastien,

The first four lines are all above the first hline and
are therefore treated as header and are exempt from calculation.
Formular applying to these fields are ignored.

Add a header line to the table:

| a                               |   b |    c |    d |
|---------------------------------+-----+------+------|
| mini sandwiches                 | 261 | 1.00 | 261. |
| rauwkostchotels                 |   2 |  36. |  72. |
| koude hapjes                    | 130 |      |    0 |
| dessertjes (in hapjes glaasjes) |  90 |    3 |  270 |
|---------------------------------+-----+------+------|
| total                           |     |      |    0 |
#+TBLFM: $4=$2*$3;%.2f::@2$3=30*1.2::@5$4=vsum(@1..@-1)

Cheers

- Carsten


> What am I not seeing?
> 
> Best regards,
>  Seb
> 
> -- 
> Sebastien Vauban
> 
> 


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 163 bytes --]

  reply	other threads:[~2013-09-10  3:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-10  2:32 [BUG] Table not recomputed (incorrect results) Sebastien Vauban
2013-09-10  3:44 ` Carsten Dominik [this message]
2013-09-10  7:49   ` Sebastien Vauban
2013-09-10  7:52     ` Carsten Dominik

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=9C939351-40D7-4E6F-8CE1-CDC30227E006@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=sva-news@mygooglest.com \
    /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.