Re: [PATCH] float format specifier in ob-C.el

2023-06-02 Thread Leo Butler
On Fri, Jun 02 2023, Ihor Radchenko wrote: > Thanks! > Applied, onto bugfix. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=d55a11214 Thanks, Ihor. Leo

Re: [PATCH] float format specifier in ob-C.el

2023-06-02 Thread Ihor Radchenko
Leo Butler writes: > Ok, I have made the changes requested. Please see the attached patch. Thanks! Applied, onto bugfix. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=d55a11214 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at

Re: [PATCH] float format specifier in ob-C.el

2023-06-01 Thread Leo Butler
On Thu, Jun 01 2023, Ihor Radchenko wrote: > Leo Butler writes: > >> In ob-C.el, line 339 has the format specifier >> >> (`floatp '("double" "%f")) >> >> to print literal floats. However, that format specifier rounds, which >> can result in errors. I think the correct approach is to pri

Re: [PATCH] float format specifier in ob-C.el

2023-06-01 Thread Ihor Radchenko
Leo Butler writes: > In ob-C.el, line 339 has the format specifier > > (`floatp '("double" "%f")) > > to print literal floats. However, that format specifier rounds, which > can result in errors. I think the correct approach is to print the > float without rounding or padding or trying

[PATCH] float format specifier in ob-C.el

2023-05-31 Thread Leo Butler
In ob-C.el, line 339 has the format specifier (`floatp '("double" "%f")) to print literal floats. However, that format specifier rounds, which can result in errors. I think the correct approach is to print the float without rounding or padding or trying to guess at the desired accurac