[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: org-table-sum
From: |
Kyle Meyer |
Subject: |
Re: org-table-sum |
Date: |
Thu, 24 Sep 2020 16:48:14 -0400 |
Kein Test writes:
> Hi,
>
> I found out about org-table-sum yesterday, but I quickly ran into a
> problem, where the result is not right.
>
> For example:
>
> | 171.00 |
> | 4.07 |
> | 4.44 |
> | 2.61 |
> | 12.21 |
> | 6.69 |
> | 19.72 |
> | 23.09 |
> | 6.23 |
> | 15.28 |
> | 250.00 |
> | 250.00 |
> | 250.00 |
> | 78.85 |
> | |
>
> If point is at the last cell, org-table-sum evaluates to 1094.1899999999998.
Here's what org-table-sum does underneath:
(apply #'+
(list 171.0 4.07 4.44 2.61 12.21 6.69 19.72 23.09 6.23 15.28 78.85))
;; => 1094.1899999999998
> I did not find a way to reproduce this with other numbers, but the
> order seems to matter.
See <https://floating-point-gui.de/basic/>.
Re: org-table-sum, Eric S Fraga, 2020/09/25