emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Table formula format string doesn't recognize %
@ 2024-05-21  6:12 Daniel Clemente
  2024-05-21  9:11 ` Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Clemente @ 2024-05-21  6:12 UTC (permalink / raw)
  To: Org-mode Org-Mode

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

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              |

[-- Attachment #2: Type: text/html, Size: 684 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-05-21 14:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-21  6:12 Table formula format string doesn't recognize % Daniel Clemente
2024-05-21  9:11 ` Ihor Radchenko
2024-05-21 14:42   ` Daniel Clemente

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