[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug: Final zero after decimal point is stripped when inline code eva
From: |
Ihor Radchenko |
Subject: |
Re: Bug: Final zero after decimal point is stripped when inline code evaluated |
Date: |
Mon, 06 May 2024 16:42:24 +0000 |
Max Nikulin <manikulin@gmail.com> writes:
> On 06/05/2024 19:44, Ihor Radchenko wrote:
>> Charles Millar writes:
>>> #+NAME: TABLE2
>>> |22578.60|
>>>
>>> src_latex[:var printthis=TABLE2[-1,-1] :eval yes :results replace
>>> :exports results]{\num{printthis}} {{{results(@@latex:\num{22578.6}@@)}}}
>>
>> This is expected. When you assign :var, Org mode reads the table data,
>> converting it to number.
>
> After discussion of ob-shell related issues I am in doubts if org-babel
> should eagerly convert strings to numbers. Perhaps numbers should be
> recognized for specific backends only (or vice versa conversion should
> be suppressed for specific backends).
Maybe. But changing the current behavior is not trivial - a lot of code
relies upon it implicitly. If anyone wants to work on more
fine-grained control over Org markup -> Elisp conversion, feel free.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>