From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id SKb4LF4IOWZgsgAA62LTzQ:P1 (envelope-from ) for ; Mon, 06 May 2024 18:42:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id SKb4LF4IOWZgsgAA62LTzQ (envelope-from ) for ; Mon, 06 May 2024 18:42:06 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=RDVKvY7w; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1715013726; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=55UxHSfa/j/Envw1iAlqCPHhEszJLSAj7sm8XtFU5S0=; b=USFgbWBVpXmedoYD41Us6HEHriIFFKTWLFbNU2zd3136/W9SLxJ1RR6UP7xBgP16ty7W9t 5VONqjcWbgJ4mEOxrdU4cTTEbjTtZl597VqlZ8SBL0mycLo2q+DEt9aWqbuMDdZhPqvUly 1zG/AMXG3EU383npMsmSCo+mWlqnMAM2dusYHKNd2jKi/Ijw+KTRVfCwujhppeLaHQ1Q4v YpliiQ9fdFMyqZg07JMHFtzunyPHsrZETymaumMuSSB/qMvNaOiXI6IDEhdIQa6Nfs822+ ZWvb+sIBZn1iaKQplLQZLGZ+bD1aUP62Xuh+2fIRzu7YN7MHYZWMGbMAZviZ8g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715013726; a=rsa-sha256; cv=none; b=dj3t+hSMFk5tO0SjAqOre1BNttiD18wSifG3h2Ur8Us+ebININijalcPmJh9j32KRGS/m5 tbCkd2NuLWpWikStZUYzEZorXEAEoKrsWJtI+yzh5H3OThNfsz4L3PPXPb3rYV7cZ++pkL W2QR0dvwkHhccx+ow2CJuXtLVRcDH01N5YTIDY4GoEGZvF1NJrT3F/8urnxt6vZQkGS4rM xW8B/XvOQzLc3v+VuuY7m3G88b/YHmTAAFqij7kCf5Bc10m9/duJZXEH3P2LmGW6lyph0r 5WlHS9zAGY5jWnVuZ6lva1lL/pxZ8GRzr0OX/MgZZIeOh8/73opZTf+A64pb2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=RDVKvY7w; dmarc=pass (policy=none) header.from=posteo.net; 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" 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 497B43DD03 for ; Mon, 06 May 2024 18:42:06 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s41Os-0000vZ-GH; Mon, 06 May 2024 12:41:14 -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 1s41Om-0000oS-Dt for emacs-orgmode@gnu.org; Mon, 06 May 2024 12:41:11 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s41Oj-0000VU-5a for emacs-orgmode@gnu.org; Mon, 06 May 2024 12:41:08 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 2493F240101 for ; Mon, 6 May 2024 18:41:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1715013663; bh=vorpm63UCCYL8YjyBlBT0633yD51DxI3ikWx7EKxeA0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=RDVKvY7w1yq47R7ASZIIT6/8KgKHPsenV3N2YJIwiU4EmpTEJZ/NSoi6DpcBHRmqv ovsVonRC/D8xAxuQfs7JzrNAeODJcYVTjBGkZBnI3RlOnaoWp0fJbmzCV1SRKpBaL6 1PgbpeQj76ZT4NDHWYxqryljO54hlaWBAkTKVEbTOfwWXu5c9eSrlHsEtVW0oUNFY4 kKoAhoo/bLdnFSxADdU28111tNgD3qDVMhrWP50D+j2ag00BNbVHMrVOpXmOQxhyr2 R1zU6QLhxASIl8SAh0uEkrwPNWA49hooW1lcucY2UgfhOYvaBTaoSwqkUPb2c/d29N I30h6yYI+EmJQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VY6by1QQWz6txf; Mon, 6 May 2024 18:41:02 +0200 (CEST) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: Bug: Final zero after decimal point is stripped when inline code evaluated In-Reply-To: References: <144951b9-d715-4fd6-a3f5-2462ff98acb0.ref@verizon.net> <144951b9-d715-4fd6-a3f5-2462ff98acb0@verizon.net> <87bk5jhzzi.fsf@localhost> Date: Mon, 06 May 2024 16:42:24 +0000 Message-ID: <87v83q3n9r.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: -6.60 X-Spam-Score: -6.60 X-Migadu-Queue-Id: 497B43DD03 X-Migadu-Scanner: mx11.migadu.com X-TUID: bq0pjAoHUS3Q Max Nikulin 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 . Support Org development at , or support my work at