From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id cDjdOIgQbV/KcAAA0tVLHw (envelope-from ) for ; Thu, 24 Sep 2020 21:32:56 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id mKCrNIgQbV+QFAAAbx9fmQ (envelope-from ) for ; Thu, 24 Sep 2020 21:32:56 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 239D99406A2 for ; Thu, 24 Sep 2020 21:32:56 +0000 (UTC) Received: from localhost ([::1]:44878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLYrF-0005iL-Mt for larch@yhetil.org; Thu, 24 Sep 2020 17:32:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLYAB-0006Nz-SK for emacs-orgmode@gnu.org; Thu, 24 Sep 2020 16:48:24 -0400 Received: from pb-smtp20.pobox.com ([173.228.157.52]:55255) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLYA9-000856-6Q for emacs-orgmode@gnu.org; Thu, 24 Sep 2020 16:48:23 -0400 Received: from pb-smtp20.pobox.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id EB194E352A; Thu, 24 Sep 2020 16:48:18 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:in-reply-to:references:date:message-id:mime-version :content-type; s=sasl; bh=IrX4wpjZbzFy+HYab+mHxUcTXCw=; b=PVSrQo Q1g8dKT/fTLSSC8S513zApiQuJq99fWEjvwRtR4uCgvGRok6RqZVahs52i2OMIQ0 /iT1mk2iUz93xugTKH6p/OUyd9b5pLe+JlrvoKxz5ULnRlcztu0bg/jV1k0yxlEP a8+wwaujHh5jKqhtZXIsYRH6XuOMmCghXiNuw= Received: from pb-smtp20.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id E57A5E3529; Thu, 24 Sep 2020 16:48:18 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=kyleam.com; h=from:to:cc:subject:in-reply-to:references:date:message-id:mime-version:content-type; s=mesmtp; bh=NhtTh5DzZ5mxR0YKogMAHaWLHoVflj/i++O6z0CTCl4=; b=Ssa9/jIhKcJMzcDlxtErgKIl+wTrG7EylDELHfIg0tzcAiHCINXD4Si0sq6Srf6Nf6eFc+wLGcYr6coKdPGw78veGIpOfCYD5u2WCv53A85OuVSi59w/Nr40zG9NTTJf8Wf+fkkEdG2GKOxzMq9H2Q/RPxMq8HG0q6vlEY+IMr0= Received: from localhost (unknown [45.33.91.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp20.pobox.com (Postfix) with ESMTPSA id 5ED25E3527; Thu, 24 Sep 2020 16:48:16 -0400 (EDT) (envelope-from kyle@kyleam.com) From: Kyle Meyer To: Kein Test Subject: Re: org-table-sum In-Reply-To: References: Date: Thu, 24 Sep 2020 16:48:14 -0400 Message-ID: <87a6xex5o1.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 454F149C-FEA7-11EA-970E-F0EA2EB3C613-24757444!pb-smtp20.pobox.com Received-SPF: pass client-ip=173.228.157.52; envelope-from=kyle@kyleam.com; helo=pb-smtp20.pobox.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/24 16:48:18 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=PVSrQo Q; dkim=pass header.d=kyleam.com header.s=mesmtp header.b=Ssa9/jIh; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.21 X-TUID: 2IHbON8iJX4u 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 .