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 GFFkKJk7OmaTmQAA62LTzQ:P1 (envelope-from ) for ; Tue, 07 May 2024 16:32:57 +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 GFFkKJk7OmaTmQAA62LTzQ (envelope-from ) for ; Tue, 07 May 2024 16:32:57 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=verizon.net header.s=a2048 header.b=AR8Qi1pF; 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=1715092375; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=u73D1n+AtiXE6VS0c8tvbSa4J7lWTlc5dhhIMEhJoXc=; b=FKQRtkytXx2lOvBrLSgGjRLJ0zGVsqAKOHAAwFh8JZKtoITHWzbG0Xs6rBabT5c6A5J1ON GMnlJfNfpYAT0I5vkeRh3RcDMOpUgeziIpYI7R5EbeeWdWZVKnQhdLqO/tAdUGC+K0rIqw AIQ9xO5nW8l3s6xdbd5FoZfSzd9MU7+TLL4ro94bqrwvII8N3YvOIzfYyAr9fKmDScW0LT 08txJAyOzZYTipFzzdOUs/ySih9Zndb0FI9GrPuMBWiO9VZeZtQoR6d0nH6h6nDi7tvR76 CtLTCspky70YSE8/HpeBvTeVZ6cbetZb1QiH/x7HefaqiB7XvHH2XDr+Uj1bGg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715092375; a=rsa-sha256; cv=none; b=eMVhVDJPVkF+SZcFdhxXmwYhjeSHUncwrOlPIss395XiN2bvb/pZXK2W0kx+M4+MVP/n6P zQPEbzkMV88hbEynTRridp9JPc2/3nuViqhnXkHmKKuZAwYjmlfpsdFPP9bxWy+yt/yPss dAc9gchPQyA2n/UPbfvzNeVce6ikPXUas0h8bs74xtv8B+MaP3ig62L5xjRKDYxTZhK6A4 Zm4kp5hzqTc0PBQp7dAvqnkN1PWWMKq4oLTm7JYZ45XgdHUxSGr87nVrq0Tf25byMbHBLf Zu+pHzS4yGc3T0Ucp/mjOC9W17TaN1IAyKgPA5iebzm1SPdwTFJpVcYh3ZK8nA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=verizon.net header.s=a2048 header.b=AR8Qi1pF; 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" 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 E1329ED4E for ; Tue, 07 May 2024 16:32:54 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s4LrM-000288-QA; Tue, 07 May 2024 10:32:01 -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 1s4Lqz-00022B-EZ for emacs-orgmode@gnu.org; Tue, 07 May 2024 10:31:47 -0400 Received: from sonic311-13.consmr.mail.bf2.yahoo.com ([74.6.131.123]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s4Lqw-00012A-Uz for emacs-orgmode@gnu.org; Tue, 07 May 2024 10:31:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verizon.net; s=a2048; t=1715092292; bh=u73D1n+AtiXE6VS0c8tvbSa4J7lWTlc5dhhIMEhJoXc=; h=Date:Subject:References:To:From:In-Reply-To:From:Subject:Reply-To; b=AR8Qi1pFQk9TYaXKuc0EbKLvUQj82FQ3GaZC8rhzicAZrD1C2zgVTULmInS/c3T5e9zfUCUlrU3/hXOll2Ws+xwz1Qjbc0QRENCszEeJny5dGQ5r/JRiSEy+ykn52yHyKx8cRRO1zVyGrjnPQb9ybSj4luIdRTbHrwPRfmFNzYR1GnFjKTjweXLL6LyYIo8PaagvHCyvQjXX83XMBsfUs9dOLIkFS4DvxP6gzxlQrajnXgG7w9hPeMaxUTIz+gdZTikH2RYNflwyWDqunbmbtEw+h9JAAfzTd6jAgeupYcvsu9toQn9jjeYoFqPdBgVJTwO7mmL/i0GglU37BvRmIg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1715092292; bh=yhxyhVYzM2t4Gf7IdtX5Ii8oyjye4J0XM1taPhqJckU=; h=X-Sonic-MF:Date:Subject:To:From:From:Subject; b=EZ6r7hzPvjaefNGE4i/V7HjwNe3HJMWdkClvcC51urUu8hmXWCA+02frn6d5WLwmvIwMtpDFriXAwBp2mNk0zlnEMAdCMjwMhCTeTTAVVhoOIeKRUO+Rfix1zsRqueZGXtMo3qBi3Ff5m5NPSJk5NIGVDilmddKftnN9IKc2Is0la3S1pUAEv6V48bDL8Ldss9MnT9Te8oOFWTGODlTccZsZcI56oSpDtZQ7hGHTxJfbwVs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Qt bi87cIAtpqpVUdVupAvejAPhpffe4F8hc9id3aKLUrzDEceeRkL.AP5BB.rCqb0JRYhtNJFuK3Af 7KfvYUYh.SBTTAj1dWMSsi7sb4zK9YPG4Gf8FFBUXFx3bT8JEbqr3N1MzqwJJNoiJsqeY7duHrIO kYpcoHSIwGrG3u3CY5fNp7LUuiCnSxU9wtVfnsUOQ87A8ciKy3n4C16V8VuJn8.Smy9hSIHA6EEB 9OyiJJXRUDtUNpQYc3N0TH3aIcsAAzW9nvRJjEwgu330fHCpVAT5s X-Sonic-MF: X-Sonic-ID: d952ccb3-0923-496e-8f25-c523180b66f2 Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.bf2.yahoo.com with HTTP; Tue, 7 May 2024 14:31:32 +0000 Received: by hermes--production-bf1-5cc9fc94c8-q6q5b (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 6b14c80b567989085947fe75e8495da8; Tue, 07 May 2024 14:31:29 +0000 (UTC) Message-ID: <419e419c-9df7-4bb1-97b7-aa19fc48bcc8@verizon.net> Date: Tue, 7 May 2024 10:31:28 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Fwd: Bug: Final zero after decimal point is stripped when inline code evaluated Content-Language: en-US References: To: "emacs-orgmode@gnu.org" From: Charles Millar In-Reply-To: X-Forwarded-Message-Id: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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.131.123; envelope-from=millarc@verizon.net; helo=sonic311-13.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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -7.82 X-Spam-Score: -7.82 X-Migadu-Queue-Id: E1329ED4E X-Migadu-Scanner: mx11.migadu.com X-TUID: AC0i4LxPkjKe -------- Forwarded Message -------- Subject: Re: Bug: Final zero after decimal point is stripped when inline code evaluated Date: Tue, 7 May 2024 10:25:05 -0400 From: Charles Millar To: Max Nikulin On 5/7/24 7:49 AM, Max Nikulin wrote: > On 07/05/2024 03:05, Charles Millar wrote: >> 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? > > I am unsure what do you mean by "using append". Nor sure myself! What I meant was each number in the second column was a result of a :var evaluation that called a table and that there was a different table for each number. > From my point of view there are 2 cases: > - When output format is fixed >   | 2 | 1.41 | >   | 3 | 1.73 | >   #+TBLFM: $2=(sqrt $1);%.2f > - When calculations should be performed with fixed point, >   usual floating point representation gives unexpected results >   src_elisp{(- 0.3 (+ 0.1 0.1 0.1))} >   {{{results(=-5.551115123125783e-17=)}}} > > Some programming languages have decimal type for numbers: > https://docs.python.org/3/library/decimal.html > > As to finances, I was surprised that ledger, hledger, and beancount have > different internal representations for amounts and there are various > issues with rounding. > > Org just should avoid unnecessary conversions between strings an > numbers, but Ihor is right and implementation would require enough efforts. > >> (setq toconvert 5.000) >> (number-to-string toconvert) >> >> evaluates to "5". > > I get "5.0" (Linux), so I suspect some mistake. > > > I am using Debian Testing, full upgrade as of last Saturday.