From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id GKfZIG04OWZc2QAAe85BDQ:P1 (envelope-from ) for ; Mon, 06 May 2024 22:07:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id GKfZIG04OWZc2QAAe85BDQ (envelope-from ) for ; Mon, 06 May 2024 22:07:09 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=verizon.net header.s=a2048 header.b="Ybo/9tpf"; dmarc=pass (policy=reject) header.from=verizon.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-Seal: i=1; s=key1; d=yhetil.org; t=1715026029; a=rsa-sha256; cv=none; b=F/yWSwxCQgDgCD8f0ySQgtJIPQG058mCmtlQoid9lu8kZDBRgyEa9gW7NcslaVB2jxpm3l 6r7NwQQVUL1efRKrzreYJNyu8BllKpzhMa3j/VqxZ9VRLEVp2fb1uJHMkvIcJJZ4OpdBLq os1oXV7eCL78QSKfoINdx3GyCvgLl9yLtRuX80OkqQ/TumSgQNRqVo4C80oWMJz32qG467 /1dVSUyvs/FFjoa4D8r96YT4N/EqwB1nhO+5pGkOjjZX8ig2eBB9D2PRaYNqOopaa0QpBr 5nuZ54w42PZksF/pERiTGcAZx56h6vdAVhFH0eUQLP/nmwS/cjanaVSMCihydg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=verizon.net header.s=a2048 header.b="Ybo/9tpf"; dmarc=pass (policy=reject) header.from=verizon.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=1715026029; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=PlQyR/xdYzSXUBtvCqa1Q/h2fEOxRahyhV7dLYH2FEg=; b=f99CM5WuFo0fwoJ0RhNhgpguLx/4Tv3adWZnseopn98cm4yAkNLiMUBOb4PSkRj7Gq44nk aOZO1gHQB0EDXdZygBFdGByQvfFu1NUBWvHLpC7qtvH6zoqDwDTKY6i5BuuUHHXkb9feyT NJC/jOLNBS6NbRubbpv3OgopShe6iMMAa3jLTfmVOr4sE00mrvw+DeLhVZpI7tkK+ntT6b PvJ+rhvfRDfKk/h6ehraOHMLCeCkfou3pRSfTczTzguVvGzXEUXyRqL6W7veWdPHJaf4EJ JcaoxQeCXBhXFx4UwWI4SdCxD2DWyWrbTXA6WfK5YaGOYo8PdHT92AgKm0niIw== 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 B9D7424BA9 for ; Mon, 6 May 2024 22:07:08 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s44au-00045e-Jc; Mon, 06 May 2024 16:05:52 -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 1s44aq-00041g-7N for emacs-orgmode@gnu.org; Mon, 06 May 2024 16:05:49 -0400 Received: from sonic307-2.consmr.mail.bf2.yahoo.com ([74.6.134.41]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s44am-00011X-Gf for emacs-orgmode@gnu.org; Mon, 06 May 2024 16:05:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verizon.net; s=a2048; t=1715025938; bh=PlQyR/xdYzSXUBtvCqa1Q/h2fEOxRahyhV7dLYH2FEg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From:Subject:Reply-To; b=Ybo/9tpfG+hCsOY/yfE7jL3RY8N1q6lPjQ43un21vXpwGF5fYfEYNYXRMEyHEV2/oGpCk+ysJ7VcgeCkC6Wu0zQDJ+Ji4mz6hUTiSYBNSy0YWhqwfhps5m33nUm2U7tjD3dXE1y+fCzAzNNn9/Yz44R4VJulzXwo2uWa2Ln4ZrF8h9GOCIcyPTQh4OMQGp0HGE6kyx5Ljjt5u+5llw+qKL/RNwypNi0rscYfO1Vkz/vLBGUkDuLQQzQ2J4dyZOkTKZwb8nXqjZRCqNc/JnVkwSO/dLhugdjxWr+64+4lVOl2Ya0PuA2ts8g10rOKCbxVRAdvkt8YZooFtO0Cf0LZrA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1715025938; bh=2uq6XaEKbdke31vVU6BPVoU2yYN2WXq2QI4tNDe6oR/=; h=X-Sonic-MF:Date:Subject:To:From:From:Subject; b=KPgmdtrI4FsbKNQ61kPzdT2EFSzt0r8WMp/Ukx47BM/zdPp/lojCPu7mJw4qNAFRSZJCUbU40D7p9lqUfj+hz2/OYEu8PV3T3qnfqamVHDJMUcEd5g0KwcuwTcQYsmrfyhzpgvojq3eiUYKQH/Dg1G0q1WjWvC3p8rZiCMrcm3E9N/tcqf+QzlxMS1wrXKjmk2rDVd7u6PUlk0fDXE+m0/jbjJQUBa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Uh3lWgzFpyugNUTx3hJCK47OJaxhGWU0LmCngclPesQFcsGeI4qBw h5tbnt64p9L6_VjwHHGwDnNHI6WwM_1D81.Gex6vWnG1fqTHaT2Bq9.61Ie_MzzRFFb8oksZw1BU syTP.8tweMWPjJKiNFz1DLvU40b6pfAuLVmog.TVDAKfehS9aX.Pxm.DGRkX7SevuS5pFjnDqN8U GWHZMY6lmahkrQDUTIcBKNXQvTt4m.7s536g8fz07QFslQa0XbGjsyETiNd40gln2dmzpd9sQGPM zf2_br1DR1M12USkJuvJnOBtnKxaN1Whjos6Z4ViBLbR42M0qmRO.FZPzR1UFg_ZYk2mb00385GZ GBVjOMvIRQQ-- X-Sonic-MF: X-Sonic-ID: a7f17e12-d693-4a05-a1e4-5639a8296c6a Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.bf2.yahoo.com with HTTP; Mon, 6 May 2024 20:05:38 +0000 Received: by hermes--production-bf1-5cc9fc94c8-xqcg6 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID fe5c0fb349ed5c1826037553db7cb5c3; Mon, 06 May 2024 20:05:33 +0000 (UTC) Message-ID: <3eb4f551-ea60-4e56-b666-4430747c816f@verizon.net> Date: Mon, 6 May 2024 16:05:32 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Bug: Final zero after decimal point is stripped when inline code evaluated To: Ihor Radchenko , Max Nikulin Cc: emacs-orgmode@gnu.org References: <144951b9-d715-4fd6-a3f5-2462ff98acb0.ref@verizon.net> <144951b9-d715-4fd6-a3f5-2462ff98acb0@verizon.net> <87bk5jhzzi.fsf@localhost> <87v83q3n9r.fsf@localhost> From: Charles Millar In-Reply-To: <87v83q3n9r.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailer: WebService/1.1.22256 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.134.41; envelope-from=millarc@verizon.net; helo=sonic307-2.consmr.mail.bf2.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: B9D7424BA9 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -10.82 X-Spam-Score: -10.82 X-TUID: KlR93zFagDuz On 5/6/24 12:42 PM, Ihor Radchenko wrote: > 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. > Thanks for the feedback. For the moment I will create separate tables that have the the desired data in quotes. I appreciate that mathematically a trailing zero or zeros may be non-significant; however, in my use case, i.e. correct format in a text, they are necessary. Another example, in addition to my Dollars and cents scenario, may be a table that that has been created by using append, and the table appears as follows because trailing zeros were disregarded. This 1.222 that 3.444 it 5.6 last 7.691 Question arises - is the correct number reported on line "it" 5.600 or has some editing omitted the last two decimal places? As an aside, I am not a coder; however I was playing around in the scratch butter, and it appears to me that this issue may run deeper that Org Mode, for instance: (number-to-string 5.000) evaluates to "5.0" Furthermore, and more closely related to the topic, (setq toconvert 5.000) (number-to-string toconvert) evaluates to "5". Just my 0.020 cents Charlie Millar