From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id AJMxE887TGbGYgAAqHPOHw:P1 (envelope-from ) for ; Tue, 21 May 2024 08:14:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id AJMxE887TGbGYgAAqHPOHw (envelope-from ) for ; Tue, 21 May 2024 08:14:39 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=jCQlV0r4; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716272047; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=UEYG28EHrquECCYmyRFqyv6rc4gpp+rgVkrc7yBDjjY=; b=EMjRkzRvq9LlHpclKEu5FK5QQ0w83RgIcreGLu2Rrh8BymsycwXyU+1LZDNWssGRRShF9E iUiWyB04pXBOaxYAjUAmlLU86w5/xwJhNiQY7suJBFRKlb61TKtuwOd7bFUL/dQtH0HiaM F6k3Rm6kszLW59dyJNYBHJa+l1iO8gaIO70sCiWGx9+ibd4LcBD+hoIky9V9uOG6b+CqHi 9uQsHOVA+I/oBTwr9c55FvEgvKoStKvSYldkyoqncgU2Ns/cEhAm7qz9QkhRMbivBOFhh4 1O8Cjm1gPt+RCFuL1NozMC87iiUi0t0g4zF0IWRT3HoFcPlA7DVZm5sv7RR7Aw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=jCQlV0r4; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716272047; a=rsa-sha256; cv=none; b=AYuowMZUfOI1Dze6Wo6NeSwQSNk+XZw1PmT649R2cF23uB/MTVPTCasMaRT8+9aZ69IqeL qiA3CsVXDbLUOZLPTfihyCOq7KWbTtA/FgX4vcKqljXxXcUt6d0uXlX84wU8cvbZGntlMj 0M0/tjahiz47GOKUyihtKK3TS9JSsPuDDGLCvsMg/bBp3FFZUYxff1HbMRd0oUyf7f6/yO 44BFIL9N+pxHnZ/jIi7IDu1Mt+6w8tBhE/dgVOeZ6wmEhXXFR6KyVAIBFV73t8HhR+wGiO Rg/MQxuMsojBmtVrPyjxJRfZh3xHz8CPiqxPSpvdgHarw2hiwRQ1E5h9ZlS+ZA== 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 578F83C524 for ; Tue, 21 May 2024 08:14:07 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9IkW-0005KZ-6e; Tue, 21 May 2024 02:13:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s9IkO-0005ES-6g for emacs-orgmode@gnu.org; Tue, 21 May 2024 02:13:18 -0400 Received: from mail-vk1-xa2e.google.com ([2607:f8b0:4864:20::a2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s9IkM-0006p1-G9 for emacs-orgmode@gnu.org; Tue, 21 May 2024 02:13:15 -0400 Received: by mail-vk1-xa2e.google.com with SMTP id 71dfb90a1353d-4df1cb51866so1252635e0c.3 for ; Mon, 20 May 2024 23:13:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716271993; x=1716876793; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=UEYG28EHrquECCYmyRFqyv6rc4gpp+rgVkrc7yBDjjY=; b=jCQlV0r4kuJ6sxNhr2PaN297yR5Ar42xJpL13cUsdFyeNtQZGMK6WgsmQu6NnuPiSH 6DKsYinBYs8pcZBNdG2dLML1defqtdWaBTUvpmH3et3WcTm4BwtunAZeV4HX0qSplwPl KObbWGjp1VuzUuHrDvMmjlXVRDFdzhsdmDtfRrzOMfq7IIFhFX/J8q4Fyz+diDvvr5oY nWtY/JIPgNcpeHWG/TV5z0pNnMe+2aC/O1CKOQZEhL4bq5gMIyisC7DYItOY2xbQJw8L l25HUz7KtgazULc/bIvL4Lc6cQm4vgaoo1c1+k25G0fzapmQNHnDADR93Qsi4xeR8Fs+ gyAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716271993; x=1716876793; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=UEYG28EHrquECCYmyRFqyv6rc4gpp+rgVkrc7yBDjjY=; b=fRTnRupg0kmJNxnpLsdY3Yq4mT0d9bZjc3BzHA2wrgzxAonw4eYikO+jIxesvJx9Vu UrInI1zl0TXV/ID2/V36EgEb6H3FujvCR2MIu4tFoWE1KLhBhpSWKesNbkcJ8PRE2pOU /aNDkBnlmSns11e6tHu9+zHEwxUrxHFKoz5pKQGmwc17qfQlDnIS+Sl/rXMy0QDhuYKv 5HFoR7msY2etpe468Zz1ZG8tutseVaOhSK4Od+57w/0e58lTzEAM6gAKPs/yQzsTy86Z dBzCkzGRDbuLbCncKJu4Ih4d7TCOxTbW4/XmNB40+CTybn1QDPEFiklomWSb5Kz5qy0p o0AA== X-Gm-Message-State: AOJu0YyiLbA4DIF1sqdiSGejsuYmgwAbvkFqFJ1uI2Y01nSl2rKddsdg G94Dpf4iQNaXfRnr6m7mM5YjbCGFx28jD9SBcgnDMfc4vs5e12a2+/03n9z8nRxvrBwfG76I0hn E8g+0KPOdZsFR9VvgF/QXrc3eddfEIu2Y X-Google-Smtp-Source: AGHT+IE+sQO/8pthtQT40ARG3mKQXN3PasvU1VMVhQLzAr2zgs3iqMhnFyQH4nrCVYMP7bzrN2MozDBkhBHczDxWxTg= X-Received: by 2002:a1f:4a83:0:b0:4d4:11a6:a4ff with SMTP id 71dfb90a1353d-4e174892671mr4646426e0c.3.1716271991397; Mon, 20 May 2024 23:13:11 -0700 (PDT) MIME-Version: 1.0 From: Daniel Clemente Date: Tue, 21 May 2024 06:12:41 +0000 Message-ID: Subject: Table formula format string doesn't recognize % To: Org-mode Org-Mode Content-Type: multipart/alternative; boundary="00000000000062a77b0618f0b63b" Received-SPF: pass client-ip=2607:f8b0:4864:20::a2e; envelope-from=n142857@gmail.com; helo=mail-vk1-xa2e.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -7.63 X-Spam-Score: -7.63 X-Migadu-Queue-Id: 578F83C524 X-Migadu-Scanner: mx13.migadu.com X-TUID: 2d2ouUfDjl/p --00000000000062a77b0618f0b63b Content-Type: text/plain; charset="UTF-8" Hi, this stopped working, possibly after a related change to org-table-eval-formula 2 days ago. | a | b | percent of a in b | |----+----+-------------------| | 10 | 20 | #ERROR | | 20 | 30 | #ERROR | #+TBLFM: $3=($1/$2)*100;%.2f%% A simpler format string like ;%.2f also fails. It seems the regexp doesn't allow the leading %. This leading % appears in the manual, so this syntax is correct. | =$1+$2;%.2f= | Same, format result to two decimals | --00000000000062a77b0618f0b63b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, this stopped working, possibly after a related ch= ange to=C2=A0org-table-eval-formula 2 days ago.

| = =C2=A0a | =C2=A0b | percent of a in b |
|----+----+-------------------|<= br>| 10 | 20 | #ERROR =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
| 20 | = 30 | #ERROR =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
#+TBLFM: $3= =3D($1/$2)*100;%.2f%%

A simpler format string like= ;%.2f also fails.
It seems the regexp doesn't allow the lead= ing %.

This leading % appears in the manual, so th= is syntax is correct.
=C2=A0| =3D$1+$2;%.2f=3D =C2=A0 =C2=A0 = =C2=A0 | Same, format result to two decimals =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0|

--00000000000062a77b0618f0b63b--