Re: Table formula format string doesn't recognize %

2024-05-21 Thread Daniel Clemente
Thanks.

On Tue, 21 May 2024 at 09:10, Ihor Radchenko  wrote:

> Daniel Clemente  writes:
>
> > 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%%
>
> Oops. Alas, that fix for
> https://orgmode.org/list/87ply5v1gj.fsf@localhost did not work.
> Fixed, on main.
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=bae1b1fe7
> I reverted the commit.
>
> --
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at .
> Support Org development at ,
> or support my work at 
>


Re: Table formula format string doesn't recognize %

2024-05-21 Thread Ihor Radchenko
Daniel Clemente  writes:

> 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%%

Oops. Alas, that fix for
https://orgmode.org/list/87ply5v1gj.fsf@localhost did not work.
Fixed, on main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=bae1b1fe7
I reverted the commit.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Table formula format string doesn't recognize %

2024-05-20 Thread Daniel Clemente
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  |