From unknown Sat Jun 14 03:50:40 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#47302 <47302@debbugs.gnu.org> To: bug#47302 <47302@debbugs.gnu.org> Subject: Status: 27.1; calc math-format-number formatting for floats without decimals is unusual Reply-To: bug#47302 <47302@debbugs.gnu.org> Date: Sat, 14 Jun 2025 10:50:40 +0000 retitle 47302 27.1; calc math-format-number formatting for floats without d= ecimals is unusual reassign 47302 emacs submitter 47302 Jelle Licht severity 47302 normal tag 47302 wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 21 17:55:02 2021 Received: (at submit) by debbugs.gnu.org; 21 Mar 2021 21:55:02 +0000 Received: from localhost ([127.0.0.1]:55586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lO62H-0002nf-M8 for submit@debbugs.gnu.org; Sun, 21 Mar 2021 17:55:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:43892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lO62G-0002nY-6k for submit@debbugs.gnu.org; Sun, 21 Mar 2021 17:55:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49200) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lO62E-0007gA-Ed for bug-gnu-emacs@gnu.org; Sun, 21 Mar 2021 17:54:59 -0400 Received: from mail1.fsfe.org ([2001:aa8:ffed:f5f3::151]:59802) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lO62C-0007PH-IO for bug-gnu-emacs@gnu.org; Sun, 21 Mar 2021 17:54:58 -0400 From: Jelle Licht To: bug-gnu-emacs@gnu.org Subject: 27.1; calc math-format-number formatting for floats without decimals is unusual Date: Sun, 21 Mar 2021 22:54:50 +0100 Message-ID: <86k0q0nped.fsf@fsfe.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2001:aa8:ffed:f5f3::151; envelope-from=jlicht@fsfe.org; helo=mail1.fsfe.org X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain Hey folks, I run into the following behaviour when using calc in Emacs 27.1 (using `emacs -Q'): --8<---------------cut here---------------start------------->8--- (calc-eval "123.0") ; => "123." (calc-eval "0.0") ; => "0." --8<---------------cut here---------------end--------------->8--- I would expect this output to be either "123.0" or "123" and "0.0" or "0" respectively. I have attached a super simple patch that fixes this issue for me, but I am not actually certain of the following: - Was this formatting quirk perhaps there with a purpose? - Does my 'fix' have unintended consequences? Thanks, Jelle --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-calc-Fix-formatting-of-floats-without-decimals.patch >From 88e52b073510c86b582487a65fa8ddf52a48e7dd Mon Sep 17 00:00:00 2001 From: Jelle Licht Date: Sun, 21 Mar 2021 22:39:41 +0100 Subject: [PATCH] (calc): Fix formatting of floats without decimals * lisp/calc/calc.el (math-format-number): Fix formatting for floats without decimals. --- lisp/calc/calc.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el index ec09abb34c..fac9f70915 100644 --- a/lisp/calc/calc.el +++ b/lisp/calc/calc.el @@ -3193,8 +3193,9 @@ math-format-number ((= dpos 0) (setq str (concat "0" point str))) ((and (<= exp 0) (> dpos 0)) - (setq str (concat (substring str 0 dpos) point - (substring str dpos)))) + (when (> len dpos) + (setq str (concat (substring str 0 dpos) point + (substring str dpos))))) ((> exp 0) (setq str (concat str (make-string exp ?0) point))) (t ; (< dpos 0) -- 2.31.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 22 14:57:14 2021 Received: (at control) by debbugs.gnu.org; 22 Mar 2021 18:57:14 +0000 Received: from localhost ([127.0.0.1]:58660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOPjm-0004V1-3n for submit@debbugs.gnu.org; Mon, 22 Mar 2021 14:57:14 -0400 Received: from quimby.gnus.org ([95.216.78.240]:45938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOPjk-0004Um-IR for control@debbugs.gnu.org; Mon, 22 Mar 2021 14:57:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Jwdesup04nJjMSj1ayITVsForf9kqJB50FZnjf0yoCY=; b=r3+y12iOiHRL6dOmxQubnX/6mI GgrA/wvtHQ4K4PHm9mzVpUuzv6QOdcPNQMveN3QxBOsQp2UDBuGKGwf2geVY8m+2adZ5OVn26itDk O8xht08tpoCoXYo+RYtJSDnOwdRh2WcpSQ2RteriW8/T4wa81OKpBiKovdGK+zX/4ZyU=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOPjc-0000MW-6j for control@debbugs.gnu.org; Mon, 22 Mar 2021 19:57:06 +0100 Date: Mon, 22 Mar 2021 19:57:03 +0100 Message-Id: <878s6fhv9c.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #47302 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 47302 + patch quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 47302 + patch quit From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 21 11:16:43 2021 Received: (at 47302) by debbugs.gnu.org; 21 Apr 2021 15:16:43 +0000 Received: from localhost ([127.0.0.1]:59452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZEap-0004Ao-4B for submit@debbugs.gnu.org; Wed, 21 Apr 2021 11:16:43 -0400 Received: from mail-pg1-f173.google.com ([209.85.215.173]:33583) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZEan-0004AZ-A3 for 47302@debbugs.gnu.org; Wed, 21 Apr 2021 11:16:41 -0400 Received: by mail-pg1-f173.google.com with SMTP id t22so30190114pgu.0 for <47302@debbugs.gnu.org>; Wed, 21 Apr 2021 08:16:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc :content-transfer-encoding; bh=Z28Kgo4FUKaoGcD7KHjOFr8jsXjQHyySFepfYmaoASc=; b=RdrIcVupSDAJqXOgTAvnOrSeEqMvVEBazqGX1jInb/elcDRfQD4Um2H4ZJ7dg598Hm cOSRrL+WAENcymdx6qKVnirAlFKPMTt1RbqazqxBwBjHSp6z33k35SqfhiCBsfKxCdlW qMgmjb3Z1IRFK/v0qB1Y+NELon0uwClw7zBvrD9E7dzfTQP4P0a22pU1nukG2jmgcyTJ 7rwGeSez/6e5C13akFFSGuBzU4O58yJipV8/q35wPznDyj2FKh1E3TrMV3ngKrDnl4nD idNjpyHt0GPFFIlqNhJQn4cZJSqlegjsEBA+x/qfaevcKr5R0TPnx/2JNjpeBJfvr81t U4Yw== X-Gm-Message-State: AOAM532SQYZqA2aV9Ggi2fPbZXT2BiVvxcfqReOlFnzUKLfufKCOPKTo mSeqikX9IObzsn/ZHESjq5mcxs9cb6trAhO63ig= X-Google-Smtp-Source: ABdhPJxjAK+UmDzgRQN8od8sufWbApQEtKQOcdu/htpIrRLpVlDw+Px+uSP+iPA4dI4k8jIBWBh19y/LV6xQQlIi02U= X-Received: by 2002:a17:90b:f0b:: with SMTP id br11mr11525176pjb.179.1619018195469; Wed, 21 Apr 2021 08:16:35 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 21 Apr 2021 10:16:35 -0500 From: Stefan Kangas In-Reply-To: <86k0q0nped.fsf@fsfe.org> (Jelle Licht's message of "Sun, 21 Mar 2021 22:54:50 +0100") References: <86k0q0nped.fsf@fsfe.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Wed, 21 Apr 2021 10:16:35 -0500 Message-ID: Subject: Re: bug#47302: 27.1; calc math-format-number formatting for floats without decimals is unusual To: Jelle Licht Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 47302 Cc: =?UTF-8?Q?Mattias_Engdeg=C3=A5rd?= , David Gillespie , 47302@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Jelle Licht writes: > Hey folks, > > I run into the following behaviour when using calc in Emacs 27.1 (using > `emacs -Q'): > > (calc-eval "123.0") ; =3D> "123." > (calc-eval "0.0") ; =3D> "0." > > I would expect this output to be either "123.0" or "123" and "0.0" or > "0" respectively. > > I have attached a super simple patch that fixes this issue for me, but I > am not actually certain of the following: > > - Was this formatting quirk perhaps there with a purpose? > - Does my 'fix' have unintended consequences? Copying in Mattias Engdeg=C3=A5rd in the hope that he can provide some insight here. I also put David Gillespie on Cc. > > Thanks, > Jelle > >>>From 88e52b073510c86b582487a65fa8ddf52a48e7dd Mon Sep 17 00:00:00 2001 > From: Jelle Licht > Date: Sun, 21 Mar 2021 22:39:41 +0100 > Subject: [PATCH] (calc): Fix formatting of floats without decimals > > * lisp/calc/calc.el (math-format-number): Fix formatting for floats > without decimals. > --- > lisp/calc/calc.el | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el > index ec09abb34c..fac9f70915 100644 > --- a/lisp/calc/calc.el > +++ b/lisp/calc/calc.el > @@ -3193,8 +3193,9 @@ math-format-number > ((=3D dpos 0) > (setq str (concat "0" point str))) > ((and (<=3D exp 0) (> dpos 0)) > - (setq str (concat (substring str 0 dpos) point > - (substring str dpos)))) > + (when (> len dpos) > + (setq str (concat (substring str 0 dpos) point > + (substring str dpos))))) > ((> exp 0) > (setq str (concat str (make-string exp ?0) point))) > (t ; (< dpos 0) From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 22 09:44:19 2021 Received: (at 47302) by debbugs.gnu.org; 22 Apr 2021 13:44:19 +0000 Received: from localhost ([127.0.0.1]:33217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZZcx-0007Bx-A5 for submit@debbugs.gnu.org; Thu, 22 Apr 2021 09:44:19 -0400 Received: from mail1480c50.megamailservers.eu ([91.136.14.80]:59342 helo=mail118c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZZcv-0007Bh-Fw for 47302@debbugs.gnu.org; Thu, 22 Apr 2021 09:44:18 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1619099050; bh=NGJiWlcLu8xIvJHTbixNpTI4eivA7DPDmEADSDftkbk=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=YsWZAimCp2n9WCBdQt3c/pOon5McEKYIW/MgDB9RdseT6ECPzMTaplpbYhQJpeK2y poqf3UVIwkWbSW7i/nn2k5XnEGIdyCa8hm4/2et9xE4Gv1uRTYHBl+SXW/9Pev6QUw j3kSbogV7PtDL4ovic9Vast6C26Tvhw6wD9esowM= Feedback-ID: mattiase@acm.or Received: from [192.168.0.4] (c188-150-171-71.bredband.comhem.se [188.150.171.71]) (authenticated bits=0) by mail118c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 13MDi8c1010388; Thu, 22 Apr 2021 13:44:09 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Subject: Re: bug#47302: 27.1; calc math-format-number formatting for floats without decimals is unusual From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= In-Reply-To: Date: Thu, 22 Apr 2021 15:44:07 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <86k0q0nped.fsf@fsfe.org> To: Stefan Kangas X-Mailer: Apple Mail (2.3445.104.17) X-CTCH-RefID: str=0001.0A742F15.60817DAA.007C, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=J9HUEzvS c=1 sm=1 tr=0 a=SF+I6pRkHZhrawxbOkkvaA==:117 a=SF+I6pRkHZhrawxbOkkvaA==:17 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=AHe2HyNqAAAA:8 a=Yf0FPod8JKrHsAjntdYA:9 a=CjuIK1q_8ugA:10 a=cp-CLR_E5zKzXxmevFi1:22 X-Origin-Country: SE X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 21 apr. 2021 kl. 17.16 skrev Stefan Kangas : > > Jelle Licht writes: >> (calc-eval "123.0") ; => "123." >> (calc-eval "0.0") ; => "0." >> >> I would expect this output to be either "123.0" or "123" and "0.0" or >> "0" respectively. Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.4 KHOP_HELO_FCRDNS Relay HELO differs from its IP's reverse DNS X-Debbugs-Envelope-To: 47302 Cc: David Gillespie , Jelle Licht , 47302@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 21 apr. 2021 kl. 17.16 skrev Stefan Kangas : >=20 > Jelle Licht writes: >> (calc-eval "123.0") ; =3D> "123." >> (calc-eval "0.0") ; =3D> "0." >>=20 >> I would expect this output to be either "123.0" or "123" and "0.0" or >> "0" respectively. Jelle, thanks for the report! Calc distinguishes integers from floating-point numbers by the presence = of a decimal point, so removing it is probably not a good idea. The lack = of a trailing 0 after the decimal point is clearly intended but mainly a = cosmetic issue; it's uncommon in hand-writing but not in computerese. We could put a 0 after the decimal point but not doing so saves some = space in the often narrow Calc windows. I'd suggest leaving it as it is. = The notation is distinctive enough that there is no serious risk of = misunderstanding. If you disagree, do say. From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 22 10:15:03 2021 Received: (at control) by debbugs.gnu.org; 22 Apr 2021 14:15:03 +0000 Received: from localhost ([127.0.0.1]:35213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZa6h-0004GN-43 for submit@debbugs.gnu.org; Thu, 22 Apr 2021 10:15:03 -0400 Received: from mail-pl1-f170.google.com ([209.85.214.170]:36493) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZa6f-0004FY-Cd for control@debbugs.gnu.org; Thu, 22 Apr 2021 10:15:01 -0400 Received: by mail-pl1-f170.google.com with SMTP id g16so6741241plq.3 for ; Thu, 22 Apr 2021 07:15:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=BzVkYS9WVBabb27snyJDx3IL3PWL5mjFmTFcpr9Vhyk=; b=jRKYkUEdOpPmclaYYUtv7uH6rc3ocJnKMcSj2mtRJdU5INAlGQQHgQN8VVqaXV3HYR y6TlwPvjhqrUilC23l081RXAvBB5pFNeHHFAGHXCdB9TihkAeobB1RtboVZIdJ1LCltr RE43BCihUze+a9o/nHPO3pHWpGdfVacSi02pRuamN/xENhKg0ag+kGDgGpCL1yMHDCZQ 9S4HXe7YjjjLvKjZiNf6E6f6AFBuorFrE25CS1RvoeF27kxKHmYlkZ5torFjf9b+JYLA vM2xj+wjtrUsboFhP1K0LjbbUg7PklD+M4k5dboMfZCtNt0IpW/3B0wVwMiuF9Th7Lfq Ppbg== X-Gm-Message-State: AOAM533b94pAJLCfkDolAeImVaVU+4Om2rDlmsMkHAKMwg2I3DmI32L5 qGyngc4GwE1om9+8RDG6dyMbh7l61vugQGQd2ujN7s/Q X-Google-Smtp-Source: ABdhPJwZkq0G7KCYmLX6kLiVnmMLvuhDfZyJ88vvKNdwkNjkSqezLz/bu53DPt16cOloePNKKXP3EmPYEGxyHuvNVUc= X-Received: by 2002:a17:90b:19ca:: with SMTP id nm10mr4283932pjb.175.1619100895441; Thu, 22 Apr 2021 07:14:55 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 22 Apr 2021 10:14:55 -0400 From: Stefan Kangas MIME-Version: 1.0 Date: Thu, 22 Apr 2021 10:14:55 -0400 Message-ID: Subject: To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: # wontfix, most likely tags 47302 wontfix thanks Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.214.170 listed in list.dnswl.org] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.214.170 listed in wl.mailspike.net] 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 2.0 BLANK_SUBJECT Subject is present but empty X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: # wontfix, most likely tags 47302 wontfix thanks Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.214.170 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.214.170 listed in wl.mailspike.net] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 2.0 BLANK_SUBJECT Subject is present but empty # wontfix, most likely tags 47302 wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 22 10:24:24 2021 Received: (at control) by debbugs.gnu.org; 22 Apr 2021 14:24:24 +0000 Received: from localhost ([127.0.0.1]:35232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZaFj-0004VF-SL for submit@debbugs.gnu.org; Thu, 22 Apr 2021 10:24:24 -0400 Received: from mail-pf1-f171.google.com ([209.85.210.171]:35462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZaFi-0004V3-4o for control@debbugs.gnu.org; Thu, 22 Apr 2021 10:24:22 -0400 Received: by mail-pf1-f171.google.com with SMTP id h15so14117018pfv.2 for ; Thu, 22 Apr 2021 07:24:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=5R/fyPj0tQrtp0Y7K7CZiIJGmhyL1i9cOREYOc8PFmw=; b=nJyc6/H1kt2zlbUYRv7wczj7suEcwo4dY1rt/AYcyhzOXbOvc1QySV6X9KJYMfJwkn To+CS4Cw5dQGUgV/4D7xn0QWnflwLG4iSklzFix+p+Kf4Enx92IYaTBglqn5/szW1dcA H9fs9/Jn3YsKqo8fih3+l9xzliIKPJr68VoArowOolqvENc0iy3Mu0uBUHSMbbWehgxQ oM7oDedZHzSW1UZXrAc1BNads5sY2om2Y8JOYTKZHeyUinb6L4cWVOSj2pmzHLVd2d1Y 2c4+rogAMY7Sa61SO9NjHIycNa0ZEBcXXhgGemcvaRcZp2OSVsAVx2iKPNAqdjFxlRpz QUoA== X-Gm-Message-State: AOAM531rgYcsbotmqzCKLTow/s50DKo/0movDvvWBXwITsu6bHtwJjFb wFQLKUM52Y7elYgJBujifQu5ukHHgP64jkfYP9hkKlT6 X-Google-Smtp-Source: ABdhPJxflaSfVSFp7H4QyYukiOJ8Tjp5od8m2WYi96XVrnHqUTSsMy9GkGG1RIHm+KrFvh0hsezn5jLbu5TBwEb+fK8= X-Received: by 2002:aa7:828f:0:b029:200:6e27:8c8f with SMTP id s15-20020aa7828f0000b02902006e278c8fmr3686144pfm.44.1619101456350; Thu, 22 Apr 2021 07:24:16 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 22 Apr 2021 10:24:15 -0400 From: Stefan Kangas MIME-Version: 1.0 Date: Thu, 22 Apr 2021 10:24:15 -0400 Message-ID: Subject: To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: # patch here is not good to go tags 47302 - patch thanks Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.210.171 listed in list.dnswl.org] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.210.171 listed in wl.mailspike.net] 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines 2.0 BLANK_SUBJECT Subject is present but empty X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: # patch here is not good to go tags 47302 - patch thanks Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.210.171 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.210.171 listed in wl.mailspike.net] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines 2.0 BLANK_SUBJECT Subject is present but empty # patch here is not good to go tags 47302 - patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 22 11:03:49 2021 Received: (at 47302) by debbugs.gnu.org; 22 Apr 2021 15:03:49 +0000 Received: from localhost ([127.0.0.1]:35269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZars-0007bN-PI for submit@debbugs.gnu.org; Thu, 22 Apr 2021 11:03:49 -0400 Received: from mail1.fsfe.org ([217.69.89.151]:59806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZarp-0007b7-Ru for 47302@debbugs.gnu.org; Thu, 22 Apr 2021 11:03:47 -0400 From: Jelle Licht To: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= , Stefan Kangas Subject: Re: bug#47302: 27.1; calc math-format-number formatting for floats without decimals is unusual In-Reply-To: References: <86k0q0nped.fsf@fsfe.org> Date: Thu, 22 Apr 2021 17:03:42 +0200 Message-ID: <86v98ejr8x.fsf@fsfe.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 47302 Cc: David Gillespie , 47302@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Mattias Engdeg=C3=A5rd writes: > 21 apr. 2021 kl. 17.16 skrev Stefan Kangas : >>=20 >> Jelle Licht writes: > >>> (calc-eval "123.0") ; =3D> "123." >>> (calc-eval "0.0") ; =3D> "0." >>>=20 >>> I would expect this output to be either "123.0" or "123" and "0.0" or >>> "0" respectively. > > Jelle, thanks for the report! > > Calc distinguishes integers from floating-point numbers by the presence o= f a decimal point, so removing it is probably not a good idea. The lack of = a trailing 0 after the decimal point is clearly intended but mainly a cosme= tic issue; it's uncommon in hand-writing but not in computerese. > > We could put a 0 after the decimal point but not doing so saves some spac= e in the often narrow Calc windows. I'd suggest leaving it as it is. The no= tation is distinctive enough that there is no serious risk of misunderstand= ing. > > If you disagree, do say. Hi Mattias, It would be nice to have a (formatting) option to print 'full' floating-point numbers. There are a lot of other knobs to tweak w.r.t. printing numbers, so in that sense it does not seem totally inconceivable for such a thing to exist. The context in which I would use this is one where the output of calc is being used by other programs and data formats (e.g. JSON). For now, I'll just have to have emacs read and then subsequently print the result of my calc-adventures, which works fine. Thanks for the consideration, - Jelle From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 22 12:44:03 2021 Received: (at 47302) by debbugs.gnu.org; 22 Apr 2021 16:44:03 +0000 Received: from localhost ([127.0.0.1]:35407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZcQs-0005y1-PD for submit@debbugs.gnu.org; Thu, 22 Apr 2021 12:44:03 -0400 Received: from mail-co1nam11on2057.outbound.protection.outlook.com ([40.107.220.57]:9587 helo=NAM11-CO1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZcIf-0005kf-ER for 47302@debbugs.gnu.org; Thu, 22 Apr 2021 12:35:36 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AskQ9RI7Et2N/2ZU2l5wZ/ar4w2fIfAUGKGwO3kK7AgwWsWuPMwi/ylxfHJaegiqZ8NAu8PjsLTnfpracisVCtRppLhPXrretCqbIWGum+uJq4hmE4E+oA+NdbGixwzV3avfE8tPHzNLpbd1M6VvKTJhW3mzSvBTdfTAr8SUYKqoFMTSEprvPKoOa7wOQtpayR65X6MgI3OzPIU1ilSHYulFDLC1lKF+aNC5ukyLqbTBPKxgVuihrsmwGqD3KI5XgfLF8R44p8+H8sZxaxszDyCXCSk5V8A6BoJxWLz1MSo4+5s+GluTF3WNoZZtE6cg1gzAxdnk0WA+TCSy62/RxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GnobjUkigM9r6IcnTBGJDdWAymO96uggDs9lhoS95xI=; b=ZO5LR0zKmCkfuDPP3h6YhX6+6aFXQlUz1mTg6/aSVxYDlZN3KMx7eboDfK5ovVHHc5s2jfd9EMa0aYsW2uvBUP63pLnGHdG9qiTKXG/C7aBti7yOAm1QiEgcPcRm/Ywd9+N8zUNbHL5839ffVdfS+w2h3b11OQkr1mvrvEy1IUECNz12oT17x5PoOFdjJ02TCbDhx8zHLWy2p9kv5AEWUPZqArtA1L3TpWCi/CNLdDpQI8x+YDnt+9zsGRl+0E9JqR/tGpKSmC7h41OQuRu/J6DNHbDM5YIwr4B6nbWkZLJyufLNRecNkiMxiW5qt45IZAO/3UuQ9xMrhu4ZB2JBew== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synaptics.com; dmarc=pass action=none header.from=synaptics.com; dkim=pass header.d=synaptics.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector2-Synaptics-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GnobjUkigM9r6IcnTBGJDdWAymO96uggDs9lhoS95xI=; b=ji00eDO43kOckR7YSVXTvrlqQlYv7aklbXwy7yxk3VIACiGdhh3k9adKdrKf0wOFc7satXe+Y7KohdxSu0pVBAKYiIh10RJuoTd3+NdC7RvFdPqDnwtFrlpoJvOaJZU/9JDt73+VQzdNQTd3KDQe+HPVMiVcoRRfuGoIZZut3mg= Received: from BYAPR03MB3592.namprd03.prod.outlook.com (2603:10b6:a02:ab::10) by BYAPR03MB3493.namprd03.prod.outlook.com (2603:10b6:a02:b5::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.16; Thu, 22 Apr 2021 16:35:25 +0000 Received: from BYAPR03MB3592.namprd03.prod.outlook.com ([fe80::60e4:16:a89b:27fc]) by BYAPR03MB3592.namprd03.prod.outlook.com ([fe80::60e4:16:a89b:27fc%3]) with mapi id 15.20.4020.023; Thu, 22 Apr 2021 16:35:25 +0000 From: Dave Gillespie To: Jelle Licht , =?utf-8?B?TWF0dGlhcyBFbmdkZWfDpXJk?= , Stefan Kangas Subject: RE: bug#47302: 27.1; calc math-format-number formatting for floats without decimals is unusual Thread-Topic: bug#47302: 27.1; calc math-format-number formatting for floats without decimals is unusual Thread-Index: AQHXNsFUtfuJlro7BUOoRdmU7hT7t6rAjZ6AgAAWPQCAABX+gA== Date: Thu, 22 Apr 2021 16:35:25 +0000 Message-ID: References: <86k0q0nped.fsf@fsfe.org> <86v98ejr8x.fsf@fsfe.org> In-Reply-To: <86v98ejr8x.fsf@fsfe.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcZGF2ZWdcYXBwZGF0YVxyb2FtaW5nXDA5ZDg0OWI2LTMyZDMtNGE0MC04NWVlLTZiODRiYTI5ZTM1Ylxtc2dzXG1zZy1iYjRlODQwOC1hMzg4LTExZWItYWZkYy0xNGFiYzU4NWQ3NmFcYW1lLXRlc3RcYmI0ZTg0MGEtYTM4OC0xMWViLWFmZGMtMTRhYmM1ODVkNzZhYm9keS50eHQiIHN6PSIzMDA3IiB0PSIxMzI2MzU4MjkyMjg2NTgzNzYiIGg9IllNNEZ6OEs5Umhoai9BRk8ycFF2NjJPdTJ5bz0iIGlkPSIiIGJsPSIwIiBibz0iMSIvPjwvbWV0YT4= x-dg-rorf: true authentication-results: fsfe.org; dkim=none (message not signed) header.d=none;fsfe.org; dmarc=none action=none header.from=synaptics.com; x-originating-ip: [162.251.184.120] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d8991068-3a04-435b-43d8-08d905aca19e x-ms-traffictypediagnostic: BYAPR03MB3493: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ZmDkUFhHwNqUSQJD4qL4fSE77CFHH49vUT1+whKv1qzvGv7SbQoigx/N4j5cLhPbB7a6CS4Ew/QnkQYeDGDZtqgfKta9hVaE3BO+3K/UzAEiNq4gKDCkv/FDj3wCEHYSdj3nWiUXcObu5K1/f1tmCneUgeuf9FGhZ6kKuoNtKizzQxnYMP9uCGZAYFWpJnVqM0yFMlNGIN1bIsPfJT3rFqaMKoI3Z21QV1QJ4pGqphGM543i+k1x/bILNeHV0ewOFGYUR+0fBSnUia8IJuAEL4T6exE3/TYtE7dXLdBqTdjWx1j/memPCEK3qsGVNl00UwUqszs2nBsawltHLVzAqgWuqM6eODEKjP16Wj7/2j22k7Rdz2uxkUTMauOSpSRxV3PI073lF0TI8MtVjMds7F5BrnI4PFGnibTdvewUYvTKl1le7G7JqytlOGfkkeI64Odj3brvfYM4FH8ZVM0dyxne6aIgi7xy63zDMnTLDLFZ/FNXlCUvFx4DboBH7ghAD+uMqRpa3vdJ8ljHCrelPWLje24DqTWO+A0lVpHVW2whBQfjHajJp7zs48ENX9dBt3BfryJfOxuNWVqBcOpeNhXS/XQChABvag4xY9chp7g= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR03MB3592.namprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(39850400004)(396003)(376002)(366004)(136003)(316002)(2906002)(110136005)(4326008)(33656002)(66574015)(66946007)(52536014)(8936002)(5660300002)(83380400001)(71200400001)(76116006)(86362001)(66446008)(7696005)(6506007)(53546011)(478600001)(55016002)(38100700002)(9686003)(66476007)(8676002)(186003)(26005)(64756008)(66556008)(122000001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?utf-8?B?eVRjRjFvVWppTkE2TlZFTkZucTk5aWhrN00wUHRGbWJYUjhNOVlrMjVrQ081?= =?utf-8?B?NkNMSEtjZ3RNcWFySy9KZkpPTmcyOEhXR2FxcnVZWmlyTFk1M2tsVnZheEdG?= =?utf-8?B?QllHNkhjTFNmS05Cd0I2WVFnaWoxOXROQVF1Z1pDMGdFemo5Y1JSVDJVczd1?= =?utf-8?B?bVdhVVpPOXlrVDFIdWJtQjg3ck5tdXFPMzJnWmpBaE1LRW43dzZCOXFoVEEy?= =?utf-8?B?anFUeDFTamJUZzFuY0JUTHltYmo5elFlMGQzR0RjT2gxTWlWL1haa21GM2Fv?= =?utf-8?B?NVhKZEV0U1U1RVRMd0tYQ2wvemx4cHY5MDlnbHJRZ1pYUndHWng4NWk2SURZ?= =?utf-8?B?QVAzT0xkQVpadVcxMURjZ3EwMnFzL2RjWkpQL2xtUWNRTGdiS3kyWm44bzV6?= =?utf-8?B?bjgvNGNUdStTNElCZGlwc1dTTEtWOHdyUWFNcnZrUWJjanVjVklQdHMwV0lm?= =?utf-8?B?U25XTjh5QnRoWjRlb0tXZ0ZuUEdacWhWL29JOEhjMzROcEtJbjZkZDA4aVNN?= =?utf-8?B?aXZIdGRjcEhEWjY5bEtWeENPU1FjRllqK2VDV0F3Rk9jZFFvS3doRXNYWDVv?= =?utf-8?B?OUdodUtCWkJWUUtTSFNtNGhnRDRVMURXQ2U1Z1J6bVlmc0Vod240RG4yaHBs?= =?utf-8?B?VEh2WWFUY0xscDVnOVh0Q1c5a0pQdUFnQmZ5K3BjcUhrWVBPQ1R2OUhjNW1j?= =?utf-8?B?c295cEZLSGV4NU16Tm1RQWpCbmZYZ1NPN2lJdVhiT0VRWkV0cktJbHByeVYy?= =?utf-8?B?VmxYRnpZMGdLYWVqZUpkTUVhcFhxeDZBN2hMUzNINWJhbFRpcjQ0RzBTUXNY?= =?utf-8?B?MkRoK21EK3RnWnc0cUM4eUFVNXJSb1NnZkpPV2M4Q2FyQUUzT2VpR1gxSWEr?= =?utf-8?B?YWVoOGxnVWtyQXJaYUZ2Wkk0bjNJQ05mUEJSMFIrNEY5anhWMUNtNWhKRW9k?= =?utf-8?B?a25lL1JzVTRFSnl3Y0ZaNWh0dVNDejdWeFRpeXkya3FPc2hYd1FYMXd4azVi?= =?utf-8?B?RmV4OEFMRGVPaDN5TkxrWk9PZGczb3dFaHNyWm5Nd3lsK1JCWlh1eldYSnVZ?= =?utf-8?B?V2UwK005WktBMHlLdmRkUTc1MVRHdVR2Z3dFYnA1ZXVvUUlOOGpGRDNlR0xL?= =?utf-8?B?WlFiaENTOXZFRUxZbGVmYnNZblNiSzFuenJzQmZLaGtWaFkvbnA3L0xsckRu?= =?utf-8?B?Ukd0V29SRFNHQVlqS0hMUEJ0TzVkOTAxQlBnd0tMczlYTHpva29QcjZ4ZWZM?= =?utf-8?B?Q0NmcUw1QXZBVXB4bzNyK1Nob25SYzB0eFR6T0JadFE3VUg4S3hmOFhsMnpw?= =?utf-8?B?M2ZVYStjU0ZxeXJLMVZRdlBVWEg2TlRtMDZzN29vRDFocHVsNFk0UjRlQmFI?= =?utf-8?B?ci8vdzNtL1VsTzJBQ0VaaEhUUU1DOFlER1BGYzcvR01EWGFGUGhZSzJydVRQ?= =?utf-8?B?SWJWMDJ3dXZ2VU9jOExGQXErdkx4VDllcGd1SWxmQU16ZDVaQ3JHQm5teTFn?= =?utf-8?B?TitGT2NpT2RSV1ZUV3lwa0hIelZNVS8zTVB6SG9Mb1c1aHVBNXlRaytrSlRk?= =?utf-8?B?RXFScmZ4bDNnMDU3Zm5HQURwVDlQbDdvelZCU1BRQzZNV2ZHdXV6dVN1U0Ra?= =?utf-8?B?MXU1azlGVzNPTjdZT2ZZY2JSM2NUZ2pVK2VkVURlYWVxcnNzV05JYURKNS9M?= =?utf-8?B?WVlBNnM3UXV2TDFSQVFBVU15RVpQMEMzVlV0Y3VDYURVY29kNFE5Y0s5bkR5?= =?utf-8?Q?aqkFGFHFLV2NR43nDIzzBkpYLCpsVj6nHu4IogX?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR03MB3592.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d8991068-3a04-435b-43d8-08d905aca19e X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Apr 2021 16:35:25.2274 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 8flPnMxJ4VyX5e+LMdPa3GJNMo1tPPuqZuhKYv80RvizwYy6/OBUF1pDo5fdvUM7em3BdH23ngoSQ85kzTynqQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR03MB3493 X-Spam-Score: 3.6 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Wow, it has been a long time since I got any correspondence on Calc! Yes, I used the notation "123." versus "123.0" with the goal to keep the output concise for casual interactive users. I agree with Mattias that it is best to leave the default as it is. Content analysis details: (3.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [162.251.184.120 listed in zen.spamhaus.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.220.57 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.107.220.57 listed in list.dnswl.org] X-Debbugs-Envelope-To: 47302 X-Mailman-Approved-At: Thu, 22 Apr 2021 12:44:01 -0400 Cc: "47302@debbugs.gnu.org" <47302@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Wow, it has been a long time since I got any correspondence on Calc! Yes, I used the notation "123." versus "123.0" with the goal to keep the output concise for casual interactive users. I agree with Mattias that it is best to leave the default as it is. Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.107.220.57 listed in list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [162.251.184.120 listed in zen.spamhaus.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.220.57 listed in wl.mailspike.net] -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager V293LCBpdCBoYXMgYmVlbiBhIGxvbmcgdGltZSBzaW5jZSBJIGdvdCBhbnkgY29ycmVzcG9uZGVu Y2Ugb24gQ2FsYyENCg0KWWVzLCBJIHVzZWQgdGhlIG5vdGF0aW9uICIxMjMuIiB2ZXJzdXMgIjEy My4wIiB3aXRoIHRoZSBnb2FsIHRvIGtlZXAgdGhlIG91dHB1dCBjb25jaXNlIGZvciBjYXN1YWwg aW50ZXJhY3RpdmUgdXNlcnMuICBJIGFncmVlIHdpdGggTWF0dGlhcyB0aGF0IGl0IGlzIGJlc3Qg dG8gbGVhdmUgdGhlIGRlZmF1bHQgYXMgaXQgaXMuDQoNCkNhbGMgaGFzIGEgQyBsYW5ndWFnZSBt b2RlICgnZCBDJyBrZXlzdHJva2UsIGNvbnRyb2xsZWQgYnkgY2FsYy1sYW5ndWFnZSkuICBJdCBp cyBhIGdvb2QgcG9pbnQgdGhhdCBDIG1vZGUgKGFuZCBwcm9iYWJseSBvdGhlcnMgbGlrZSBpdCkg c2hvdWxkIGZvcm1hdCBpbnRlZ2VyLXZhbHVlZCBmbG9hdHMgYXMgIjEyMy4wIiBldmVuIGlmIHRo ZSBkZWZhdWx0IG1vZGUgZG9lcyBub3QuICBJZiB3ZSBhcHBseSBKZWxsZSdzIHBhdGNoLCBJIHN1 Z2dlc3QgbWFraW5nIGl0IGNvbmRpdGlvbmFsIG9uIGNhbGMtbGFuZ3VhZ2Ugc28gdGhhdCBpdCBh cHBsaWVzIG9ubHkgaW4gbW9kZXMgc3VjaCBhcyBDIG1vZGUuICBPciBwZXJoYXBzIHJld29yayBp dCBhcyBhIHRleHQgdHJhbnNmb3JtYXRpb24gdXNpbmcgY2FsYy1sYW5ndWFnZS1maWx0ZXIuDQoN CllvdSBjb3VsZCBldmVuIGNyZWF0ZSBhIEpTT04gbGFuZ3VhZ2UgbW9kZSwgYnV0IG1vc3QgbGlr ZWx5IHRoZSBiYXNpYyBDIG1vZGUgaXMgY2xvc2UgZW5vdWdoIHRvIHNlcnZlIHRoYXQgcHVycG9z ZS4NCg0KVGhhbmtzIQ0KDQrCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKg wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqAgLS0gRGF2ZQ0KDQoNCg0KLS0tLS1PcmlnaW5h bCBNZXNzYWdlLS0tLS0NCkZyb206IEplbGxlIExpY2h0IDxqbGljaHRAZnNmZS5vcmc+IA0KU2Vu dDogVGh1cnNkYXksIEFwcmlsIDIyLCAyMDIxIDg6MDQgQU0NClRvOiBNYXR0aWFzIEVuZ2RlZ8Ol cmQgPG1hdHRpYXNlQGFjbS5vcmc+OyBTdGVmYW4gS2FuZ2FzIDxzdGVmYW5AbWFyeGlzdC5zZT4N CkNjOiA0NzMwMkBkZWJidWdzLmdudS5vcmc7IERhdmUgR2lsbGVzcGllIDxEYXZlZ0BzeW5hcHRp Y3MuY29tPg0KU3ViamVjdDogUmU6IGJ1ZyM0NzMwMjogMjcuMTsgY2FsYyBtYXRoLWZvcm1hdC1u dW1iZXIgZm9ybWF0dGluZyBmb3IgZmxvYXRzIHdpdGhvdXQgZGVjaW1hbHMgaXMgdW51c3VhbA0K DQpDQVVUSU9OOiBFbWFpbCBvcmlnaW5hdGVkIGV4dGVybmFsbHksIGRvIG5vdCBjbGljayBsaW5r cyBvciBvcGVuIGF0dGFjaG1lbnRzIHVubGVzcyB5b3UgcmVjb2duaXplIHRoZSBzZW5kZXIgYW5k IGtub3cgdGhlIGNvbnRlbnQgaXMgc2FmZS4NCg0KDQpNYXR0aWFzIEVuZ2RlZ8OlcmQgPG1hdHRp YXNlQGFjbS5vcmc+IHdyaXRlczoNCg0KPiAyMSBhcHIuIDIwMjEga2wuIDE3LjE2IHNrcmV2IFN0 ZWZhbiBLYW5nYXMgPHN0ZWZhbkBtYXJ4aXN0LnNlPjoNCj4+DQo+PiBKZWxsZSBMaWNodCA8amxp Y2h0QGZzZmUub3JnPiB3cml0ZXM6DQo+DQo+Pj4gKGNhbGMtZXZhbCAiMTIzLjAiKSA7ID0+ICIx MjMuIg0KPj4+IChjYWxjLWV2YWwgIjAuMCIpIDsgPT4gIjAuIg0KPj4+DQo+Pj4gSSB3b3VsZCBl eHBlY3QgdGhpcyBvdXRwdXQgdG8gYmUgZWl0aGVyICIxMjMuMCIgb3IgIjEyMyIgYW5kICIwLjAi IG9yDQo+Pj4gIjAiIHJlc3BlY3RpdmVseS4NCj4NCj4gSmVsbGUsIHRoYW5rcyBmb3IgdGhlIHJl cG9ydCENCj4NCj4gQ2FsYyBkaXN0aW5ndWlzaGVzIGludGVnZXJzIGZyb20gZmxvYXRpbmctcG9p bnQgbnVtYmVycyBieSB0aGUgcHJlc2VuY2Ugb2YgYSBkZWNpbWFsIHBvaW50LCBzbyByZW1vdmlu ZyBpdCBpcyBwcm9iYWJseSBub3QgYSBnb29kIGlkZWEuIFRoZSBsYWNrIG9mIGEgdHJhaWxpbmcg MCBhZnRlciB0aGUgZGVjaW1hbCBwb2ludCBpcyBjbGVhcmx5IGludGVuZGVkIGJ1dCBtYWlubHkg YSBjb3NtZXRpYyBpc3N1ZTsgaXQncyB1bmNvbW1vbiBpbiBoYW5kLXdyaXRpbmcgYnV0IG5vdCBp biBjb21wdXRlcmVzZS4NCj4NCj4gV2UgY291bGQgcHV0IGEgMCBhZnRlciB0aGUgZGVjaW1hbCBw b2ludCBidXQgbm90IGRvaW5nIHNvIHNhdmVzIHNvbWUgc3BhY2UgaW4gdGhlIG9mdGVuIG5hcnJv dyBDYWxjIHdpbmRvd3MuIEknZCBzdWdnZXN0IGxlYXZpbmcgaXQgYXMgaXQgaXMuIFRoZSBub3Rh dGlvbiBpcyBkaXN0aW5jdGl2ZSBlbm91Z2ggdGhhdCB0aGVyZSBpcyBubyBzZXJpb3VzIHJpc2sg b2YgbWlzdW5kZXJzdGFuZGluZy4NCj4NCj4gSWYgeW91IGRpc2FncmVlLCBkbyBzYXkuDQpIaSBN YXR0aWFzLA0KDQpJdCB3b3VsZCBiZSBuaWNlIHRvIGhhdmUgYSAoZm9ybWF0dGluZykgb3B0aW9u IHRvIHByaW50ICdmdWxsJw0KZmxvYXRpbmctcG9pbnQgbnVtYmVycy4gVGhlcmUgYXJlIGEgbG90 IG9mIG90aGVyIGtub2JzIHRvIHR3ZWFrDQp3LnIudC4gcHJpbnRpbmcgbnVtYmVycywgc28gaW4g dGhhdCBzZW5zZSBpdCBkb2VzIG5vdCBzZWVtIHRvdGFsbHkNCmluY29uY2VpdmFibGUgZm9yIHN1 Y2ggYSB0aGluZyB0byBleGlzdC4NCg0KVGhlIGNvbnRleHQgaW4gd2hpY2ggSSB3b3VsZCB1c2Ug dGhpcyBpcyBvbmUgd2hlcmUgdGhlIG91dHB1dCBvZiBjYWxjIGlzDQpiZWluZyB1c2VkIGJ5IG90 aGVyIHByb2dyYW1zIGFuZCBkYXRhIGZvcm1hdHMgKGUuZy4gSlNPTikuIEZvciBub3csIEknbGwN Cmp1c3QgaGF2ZSB0byBoYXZlIGVtYWNzIHJlYWQgYW5kIHRoZW4gc3Vic2VxdWVudGx5IHByaW50 IHRoZSByZXN1bHQgb2YNCm15IGNhbGMtYWR2ZW50dXJlcywgd2hpY2ggd29ya3MgZmluZS4NCg0K VGhhbmtzIGZvciB0aGUgY29uc2lkZXJhdGlvbiwNCiAtIEplbGxlDQo= From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 25 11:53:42 2021 Received: (at 47302) by debbugs.gnu.org; 25 Apr 2021 15:53:42 +0000 Received: from localhost ([127.0.0.1]:43523 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lah4o-0006JP-5d for submit@debbugs.gnu.org; Sun, 25 Apr 2021 11:53:42 -0400 Received: from mail1459c50.megamailservers.eu ([91.136.14.59]:48678 helo=mail267c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lah4m-0006JA-DB for 47302@debbugs.gnu.org; Sun, 25 Apr 2021 11:53:41 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1619366013; bh=aQzsr9ottiLsDy4lQ7MiJyddU97cKUjjqTM4sV/POM4=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From; b=WMawoZWXBK+hLzC+O0wr0d8ZNffTPAD6WRAr+0zSufJfKmWhAdWNAblWKl4B7jAw8 QkE3L1+ik4MlQ3XN67j+qi0cOSzIMinzdF/rJVWrhoqGf4hc/zYs6UZsrpPCi/hKHp R7G4J5bWzeTZ6yzDyO8nH6aY9zbT659/GadsIAlg= Feedback-ID: mattiase@acm.or Received: from [192.168.0.4] (c188-150-171-71.bredband.comhem.se [188.150.171.71]) (authenticated bits=0) by mail267c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 13PFrVWl015705; Sun, 25 Apr 2021 15:53:32 +0000 From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Message-Id: <0E7C5A4F-105A-4E1E-A103-BFB9C263F2BA@acm.org> Content-Type: multipart/mixed; boundary="Apple-Mail=_18EF807A-717E-4D2A-8162-9126BB002BB1" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Subject: Re: bug#47302: 27.1; calc math-format-number formatting for floats without decimals is unusual Date: Sun, 25 Apr 2021 17:53:30 +0200 In-Reply-To: To: Dave Gillespie References: <86k0q0nped.fsf@fsfe.org> <86v98ejr8x.fsf@fsfe.org> X-Mailer: Apple Mail (2.3445.104.17) X-CTCH-RefID: str=0001.0A742F22.6085907D.001C, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=OpoxNB3t c=1 sm=1 tr=0 a=SF+I6pRkHZhrawxbOkkvaA==:117 a=SF+I6pRkHZhrawxbOkkvaA==:17 a=M51BFTxLslgA:10 a=swAopTDVAAAA:8 a=S2u0-_idYBEBAFvFCK8A:9 a=CjuIK1q_8ugA:10 a=b5CK2jE2_QR4IXyYsw8A:9 a=De_Ol2h6w80A:10 a=7aPqbiTMDNvH6kBvy-t8:22 X-Origin-Country: SE X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 22 apr. 2021 kl. 18.35 skrev Dave Gillespie : > Wow, it has been a long time since I got any correspondence on Calc! Good to hear from you, Dave! I just fix the occasional Calc bug now and then. Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.4 KHOP_HELO_FCRDNS Relay HELO differs from its IP's reverse DNS X-Debbugs-Envelope-To: 47302 Cc: Jelle Licht , Stefan Kangas , "47302@debbugs.gnu.org" <47302@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --Apple-Mail=_18EF807A-717E-4D2A-8162-9126BB002BB1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 22 apr. 2021 kl. 18.35 skrev Dave Gillespie : > Wow, it has been a long time since I got any correspondence on Calc! Good to hear from you, Dave! I just fix the occasional Calc bug now and = then. > Calc has a C language mode ('d C' keystroke, controlled by = calc-language). It is a good point that C mode (and probably others = like it) should format integer-valued floats as "123.0" even if the = default mode does not. If we apply Jelle's patch, I suggest making it = conditional on calc-language so that it applies only in modes such as C = mode. Or perhaps rework it as a text transformation using = calc-language-filter. >=20 > You could even create a JSON language mode, but most likely the basic = C mode is close enough to serve that purpose. These are all good suggestions. Most languages permit trailing decimal = points; the only common exceptions that I can think of are Haskell, Ada = and Swift. Apparently JSON is also one. Tying the float-format display = to the C, Pascal (etc) modes seems a bit incongruous as it has nothing = to do with the syntax of those languages. How to display a floating-point number with zero fraction also depends = on what the user wants to do with the result, so there is a good = argument for letting him or her do the required post-processing. = Sometimes '1.' should become '1.0', sometimes '1'. For instance, in a = LaTeX document it would depend on how the author wants to represent = significant digits. A JSON parser (such as the one in Emacs) will parse = '1.0' and '1' differently, as a float or integer respectively. I wrote the patch below as a possible solution but in the light of the = above, perhaps it's not ideal? --Apple-Mail=_18EF807A-717E-4D2A-8162-9126BB002BB1 Content-Disposition: attachment; filename=calc-digit-after-point.diff Content-Type: application/octet-stream; x-unix-mode=0644; name="calc-digit-after-point.diff" Content-Transfer-Encoding: 7bit diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el index ec09abb34c..1e7d5e7766 100644 --- a/lisp/calc/calc.el +++ b/lisp/calc/calc.el @@ -483,6 +483,11 @@ calc-display-sci-low "Floating-point numbers with this negative exponent or lower are displayed scientific notation in calc-mode.") +(defvar calc-digit-after-point nil + "If t, display at least one digit after the decimal point, as in `12.0'. +If nil, the decimal point may come last in a number, as in `12.'. +This setting only applies to floats in normal display mode.") + (defvar calc-other-modes nil "List of used-defined strings to append to Calculator mode line.") @@ -3184,7 +3189,8 @@ math-format-number exp (- exp adj))))) (setq str (int-to-string mant)) (let* ((len (length str)) - (dpos (+ exp len))) + (dpos (+ exp len)) + (trailing-0 (and calc-digit-after-point "0"))) (if (and (eq fmt 'float) (<= dpos (+ calc-internal-prec calc-display-sci-high)) (>= dpos (+ calc-display-sci-low 2))) @@ -3194,9 +3200,11 @@ math-format-number (setq str (concat "0" point str))) ((and (<= exp 0) (> dpos 0)) (setq str (concat (substring str 0 dpos) point - (substring str dpos)))) + (substring str dpos) + (and (>= dpos len) trailing-0)))) ((> exp 0) - (setq str (concat str (make-string exp ?0) point))) + (setq str (concat str (make-string exp ?0) + point trailing-0))) (t ; (< dpos 0) (setq str (concat "0" point (make-string (- dpos) ?0) str)))) diff --git a/test/lisp/calc/calc-tests.el b/test/lisp/calc/calc-tests.el index c5aa5a31eb..06010dd417 100644 --- a/test/lisp/calc/calc-tests.el +++ b/test/lisp/calc/calc-tests.el @@ -191,6 +191,33 @@ calc-format-radix (let ((calc-number-radix 36)) (should (equal (math-format-number 12345678901) "36#5,O6A,QT1"))))) +(ert-deftest calc-display-digit-after-point () + "Test display of trailing 0 after decimal point (bug#47302)." + (let ((calc-display-digit-after-point nil)) + ;; Integral floats have no digits after the decimal point (default). + (should (equal (math-format-number '(float 0 0)) "0.")) + (should (equal (math-format-number '(float 5 0)) "5.")) + (should (equal (math-format-number '(float 3 1)) "30.")) + (should (equal (math-format-number '(float 23 0)) "23.")) + (should (equal (math-format-number '(float 123 0)) "123.")) + (should (equal (math-format-number '(float 1 -1)) "0.1")) + (should (equal (math-format-number '(float 54 -1)) "5.4")) + (should (equal (math-format-number '(float 1 -4)) "1e-4")) + (should (equal (math-format-number '(float 1 14)) "1e14")) + (should (equal (math-format-number 12) "12"))) + (let ((calc-display-digit-after-point t)) + ;; Integral floats have at least one digit after the decimal point. + (should (equal (math-format-number '(float 0 0)) "0.0")) + (should (equal (math-format-number '(float 5 0)) "5.0")) + (should (equal (math-format-number '(float 3 1)) "30.0")) + (should (equal (math-format-number '(float 23 0)) "23.0")) + (should (equal (math-format-number '(float 123 0)) "123.0")) + (should (equal (math-format-number '(float 1 -1)) "0.1")) + (should (equal (math-format-number '(float 54 -1)) "5.4")) + (should (equal (math-format-number '(float 1 -4)) "1e-4")) + (should (equal (math-format-number '(float 1 14)) "1e14")) + (should (equal (math-format-number 12) "12")))) + (ert-deftest calc-calendar () "Test calendar conversions (bug#36822)." (should (equal (calcFunc-julian (math-parse-date "2019-07-27")) 2458692)) --Apple-Mail=_18EF807A-717E-4D2A-8162-9126BB002BB1-- From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 26 10:58:26 2021 Received: (at 47302) by debbugs.gnu.org; 26 Apr 2021 14:58:26 +0000 Received: from localhost ([127.0.0.1]:46701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lb2go-0005DU-1z for submit@debbugs.gnu.org; Mon, 26 Apr 2021 10:58:26 -0400 Received: from mail-mw2nam08on2087.outbound.protection.outlook.com ([40.107.101.87]:59201 helo=NAM04-MW2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lb2gl-0005DC-Dl for 47302@debbugs.gnu.org; Mon, 26 Apr 2021 10:58:20 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BwYpMItJmIbxdTqgZgELPRIwgvE77v00H1/dRegz2IR1/jghRH5OiNceS+7mjgPARn2iyC3hXQcBqOYOvrk2bq9T+5TQsxZn+9UUszfWd5WA/7EqKLqTxBYWAxJPVlb1Xtc/Bc1rRG/EAiqEgqJXRjkSsID0QnxrcaHp2i2DZ0Nz1DeEgvV4jleA/lMYnkIpHCtREmsw0hIh0cwwPGvJ9HFk1BzaOf4onJtpU2c8OQ2Cm2n5xSukpSx0ieeTf5l6kYpKCUbcKUV0sBdJOhxWChRg0u80FMcIdwrG30AHO+k7fUolgUdne5+nO6oPPgRQH31R+dVXV7kKLNToP4yIsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WEIXUrJYUcZEHdk7VEoMUGmSJ00gXCcv1rJB9+qst6g=; b=MCxeyXBenX9d0f608RR5NmDuwv8zNqYDZ6CKH7FiAK6aC9sGuOlVll5FVLbjYAe1qTNqrY7Xnnj0X54/XphcBuCD7oUBwFwp82AvtVkR57MAjMzTsd+esy9v+0gPIlnmUyonNtAsmRWEbri0XxxPIELMCtg82Mu9x3fWyjcoUzww6gh0LESSsJvXcAyCdbCi2NM7vGaBNB5yd2RisHV/K2oHq2mjFYmhlytaB52lI9FH7Ng3m4TmY3iNbhxYT1cR9DVHnZYnsy/LZ7d3VuYWuhU6OzLruAgP1AsGjaujZBpO2yYchlr2FlITuvrCwUuVYgJTTSfaXF+8T7Wm6evhqQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synaptics.com; dmarc=pass action=none header.from=synaptics.com; dkim=pass header.d=synaptics.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector2-Synaptics-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WEIXUrJYUcZEHdk7VEoMUGmSJ00gXCcv1rJB9+qst6g=; b=c2kbsi3WFut7oTlWvW4mprZvo9Lx9cXO2918ksyDjcEs6WG9wemc+suaILWS203PuqCT7F6gag8VcRkP+g8nM6iR1tot5jmKMYF8BGt7FHLmwnrOn/4eNSnip1aWOilIffwpUlOB92T7HAd5r1SEhCSrDqnoCej+536LLVJCytE= Received: from BYAPR03MB3592.namprd03.prod.outlook.com (2603:10b6:a02:ab::10) by BY5PR03MB5345.namprd03.prod.outlook.com (2603:10b6:a03:219::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21; Mon, 26 Apr 2021 14:58:12 +0000 Received: from BYAPR03MB3592.namprd03.prod.outlook.com ([fe80::4829:5817:61ff:c447]) by BYAPR03MB3592.namprd03.prod.outlook.com ([fe80::4829:5817:61ff:c447%5]) with mapi id 15.20.4065.027; Mon, 26 Apr 2021 14:58:12 +0000 From: Dave Gillespie To: =?iso-8859-1?Q?Mattias_Engdeg=E5rd?= Subject: RE: bug#47302: 27.1; calc math-format-number formatting for floats without decimals is unusual Thread-Topic: bug#47302: 27.1; calc math-format-number formatting for floats without decimals is unusual Thread-Index: AQHXNsFUtfuJlro7BUOoRdmU7hT7t6rAjZ6AgAAWPQCAABX+gIAEruoAgAGCxZA= Date: Mon, 26 Apr 2021 14:58:12 +0000 Message-ID: References: <86k0q0nped.fsf@fsfe.org> <86v98ejr8x.fsf@fsfe.org> <0E7C5A4F-105A-4E1E-A103-BFB9C263F2BA@acm.org> In-Reply-To: <0E7C5A4F-105A-4E1E-A103-BFB9C263F2BA@acm.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcZGF2ZWdcYXBwZGF0YVxyb2FtaW5nXDA5ZDg0OWI2LTMyZDMtNGE0MC04NWVlLTZiODRiYTI5ZTM1Ylxtc2dzXG1zZy1kMDJkYTExOS1hNjlmLTExZWItYWZlMC0xNGFiYzU4NWQ3NmFcYW1lLXRlc3RcZDAyZGExMWItYTY5Zi0xMWViLWFmZTAtMTRhYmM1ODVkNzZhYm9keS50eHQiIHN6PSIyNDY5IiB0PSIxMzI2MzkyMjY4OTgwNjI1MzIiIGg9IktVWmFxN2NYUkg5WDJjRThEQXJ6c1hsMDMwST0iIGlkPSIiIGJsPSIwIiBibz0iMSIvPjwvbWV0YT4= x-dg-rorf: true authentication-results: acm.org; dkim=none (message not signed) header.d=none;acm.org; dmarc=none action=none header.from=synaptics.com; x-originating-ip: [162.251.184.120] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a3c2e898-dcda-4c97-286c-08d908c3b669 x-ms-traffictypediagnostic: BY5PR03MB5345: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: O8uSFSwfkNfXuaLo69tTqW+c2R7PAuj3AOWeFR4sxEvP0CAbu8LmtH+4H/RaPNh1N2hF063WDD90OkFK0iHEXGCGg9ibk63GEG/IRn01GAGw4HEQURkwmzR5h5u+kQR084c+We5WxmRQauYKJ0o03typITgnP96P5S1nz+Imx/H4YSXkh2COAm5q3s5d4cd0GcuNWjEhc6NWKcB5abdNjFiiIBukU0jkHNqzsJcTA6pdOSF/xPE6C9ScbcZuszxrgFs3uvf3GA+bgMi/LCJiOlGpuDMSbD/RXnTkeYF+wp8sBHlQKQmI/vXv5FJTlPz7jTSC+Wah3IKbueV3vgmaNYc6UKjsTlkdc26lFGiQO1Zix5Doc4DEKm5+N9jtAtEqr+rbDIY/e8PBY0E2aVSxqajfLMJnJKrEEhHxfTEpngLniMcj/idtph09g5xq9w5TsvRX1DzAuIpMuFU453ZbQBOaKGs/7JTFXOT6/F2JG2n9Y3mMzEUPRGTHlD6ANGwlpvJq/AUNgeU8XK0MELBx9Rgv8w0tmxDQCUKLNFmig4jSFPyQSjplDs1pEqzJrkQNn/8MLvD7anqOFOttsNfErndDf/Vre1253lGO0mDbN/U= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR03MB3592.namprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(136003)(346002)(376002)(396003)(39850400004)(6916009)(478600001)(8676002)(316002)(54906003)(71200400001)(83380400001)(8936002)(6506007)(4326008)(66574015)(5660300002)(53546011)(7696005)(26005)(186003)(2906002)(9686003)(55016002)(38100700002)(64756008)(86362001)(122000001)(52536014)(66556008)(66946007)(76116006)(66446008)(66476007)(33656002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?iso-8859-1?Q?B9Ea+HsA5Gmqh0gQLMLih4kn4EnKiyKxYFL3civrNbvMjCxL6GheeYCjMF?= =?iso-8859-1?Q?pYsaU7hPaBSYJasy0ZeuouFyqpd6kwaqSdpnuyI/Yl4R9r2DWb5+qdPLR4?= =?iso-8859-1?Q?i4e/81JV5DlkTiWn4iHLDj+GF3Xcr/RCaLNs9ww/BM/DiSbzUtjid42PjR?= =?iso-8859-1?Q?P8M/TPUxswUMyEVHfv49/DJjmaRx4Zqai85Fm0AyU9mtK52s9ORF5EOAx0?= =?iso-8859-1?Q?YtYC3tX4XAHzYJY5GVOhCm87EtRPWDp8LcgErpCREAEd2TKZ7XZT5ZNlCu?= =?iso-8859-1?Q?WuitUgf4OKnic5XiEQs2AwfW7kDJVSpisTK/uBqJWyJtaBhUgJuJJVgZeC?= =?iso-8859-1?Q?+Y+C0zzc1s2Mk358H3WSUhNpP8tbTjLqasgmOX1TntRyScfHhl1k6WctRl?= =?iso-8859-1?Q?WG0qgO6Tuw3K7Z6P3Hr7nvwp4lGzDhaeIVO0PjL1RND0FKmqCF0L/1XAzm?= =?iso-8859-1?Q?IlkhNN3w6/f7k5IkDferUD4vE5BKwO+IM8XmOppBSFn7lZZKMMKEUnmr0H?= =?iso-8859-1?Q?UA734JKgy3yviik+WyTrBo33IVrB86Q4mrc0TLsdgydPrilzS6o1RW3cUn?= =?iso-8859-1?Q?tRt48d7aC8Zm3E1bf3rXKC3oB/NAu3TSYn/c0sUV8E1qd9LVOMICD2y3wr?= =?iso-8859-1?Q?kY1/orcKpvEpORPW0AptLea57GCJd/P8UkxAeEMm0YEc2IllKyGEU3wLWo?= =?iso-8859-1?Q?nadbS0WELR8l4eCJ6aqfWhsebfe3Ez6A0pZ3ysWEzo6mvSosQopuM9czMW?= =?iso-8859-1?Q?MwmmcooDkLZ4QQq8UWU3wvbE0PLfOQjQczO5U68sBT5gvndBcKdfQmNxIk?= =?iso-8859-1?Q?NWBcKTl7i1iz8fNqdmAgTwgJe5Pd66vj5iDSbCayMcFoNIoKdS9eurzopE?= =?iso-8859-1?Q?XrGksBskHnzaP+g5qIUmscyda0cMecdG+/8I+caJDdvAG4Z2NLlHCV0JHm?= =?iso-8859-1?Q?yLopESTnUS97YksU7mTX7QcWlMBbTxWRCAX044mXD54MKluSOZc9tsc68R?= =?iso-8859-1?Q?TgQGH2biumpc/IgEP3OpGwycNagC/QC5z2yBXrxhoJbjVPAteAEnL+10Ye?= =?iso-8859-1?Q?vMtJgsov8pMsUIdjWZ2JciMfC1n/1QlBuzHWQ6j0eDdHe7j+tRKkI83xpE?= =?iso-8859-1?Q?IThLkvPxd/COb4aRdXzcIyxHQvhGJbJxZPdDSSURwMALPYUQa7dVS/oRwF?= =?iso-8859-1?Q?BabHEg/NCM2cUeY972aW2prKJzJrh3fzXXqGs6RcxSvTFSPyzCMiEAfSsl?= =?iso-8859-1?Q?8lXWhTubddX9ZtUu7A2Mb10oUgBp1WxvepTiU0rwHsw5Gc06TsjPbg10x+?= =?iso-8859-1?Q?f0c0myK6yGkZuvIaBO4YTXzKWtYA/ZNSlPeTX7RT+TEEip/DNLgI4RgU2y?= =?iso-8859-1?Q?R1yfLaB1VW?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR03MB3592.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a3c2e898-dcda-4c97-286c-08d908c3b669 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Apr 2021 14:58:12.0536 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 757C7RdRyRHCJhB3sLoC1RrIAdVrewjHsew32Ar3HKop7U7DBuknurnb8+4WuDZzsRMXxr7aZxQhRKxGhZz+mA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR03MB5345 X-Spam-Score: 3.6 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Yes, that patch makes sense. Thanks, and thanks for helping with this old beast!                                                                 -- Dave Content analysis details: (3.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [162.251.184.120 listed in zen.spamhaus.org] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.107.101.87 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.101.87 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record X-Debbugs-Envelope-To: 47302 Cc: Jelle Licht , Stefan Kangas , "47302@debbugs.gnu.org" <47302@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Yes, that patch makes sense. Thanks, and thanks for helping with this old beast!                                                                 -- Dave Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.101.87 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.107.101.87 listed in list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [162.251.184.120 listed in zen.spamhaus.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager Yes, that patch makes sense. Thanks, and thanks for helping with this old = beast! =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 -- Dave -----Original Message----- From: Mattias Engdeg=E5rd =20 Sent: Sunday, April 25, 2021 8:54 AM To: Dave Gillespie Cc: Jelle Licht ; Stefan Kangas ; 47302= @debbugs.gnu.org Subject: Re: bug#47302: 27.1; calc math-format-number formatting for floats= without decimals is unusual CAUTION: Email originated externally, do not click links or open attachment= s unless you recognize the sender and know the content is safe. 22 apr. 2021 kl. 18.35 skrev Dave Gillespie : > Wow, it has been a long time since I got any correspondence on Calc! Good to hear from you, Dave! I just fix the occasional Calc bug now and the= n. > Calc has a C language mode ('d C' keystroke, controlled by calc-language)= . It is a good point that C mode (and probably others like it) should form= at integer-valued floats as "123.0" even if the default mode does not. If = we apply Jelle's patch, I suggest making it conditional on calc-language so= that it applies only in modes such as C mode. Or perhaps rework it as a t= ext transformation using calc-language-filter. > > You could even create a JSON language mode, but most likely the basic C m= ode is close enough to serve that purpose. These are all good suggestions. Most languages permit trailing decimal poin= ts; the only common exceptions that I can think of are Haskell, Ada and Swi= ft. Apparently JSON is also one. Tying the float-format display to the C, P= ascal (etc) modes seems a bit incongruous as it has nothing to do with the = syntax of those languages. How to display a floating-point number with zero fraction also depends on w= hat the user wants to do with the result, so there is a good argument for l= etting him or her do the required post-processing. Sometimes '1.' should be= come '1.0', sometimes '1'. For instance, in a LaTeX document it would depen= d on how the author wants to represent significant digits. A JSON parser (s= uch as the one in Emacs) will parse '1.0' and '1' differently, as a float o= r integer respectively. I wrote the patch below as a possible solution but in the light of the abov= e, perhaps it's not ideal? From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 27 12:15:56 2021 Received: (at 47302-done) by debbugs.gnu.org; 27 Apr 2021 16:15:56 +0000 Received: from localhost ([127.0.0.1]:50718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbQNQ-00078O-2k for submit@debbugs.gnu.org; Tue, 27 Apr 2021 12:15:56 -0400 Received: from mail1438c50.megamailservers.eu ([91.136.14.38]:48920 helo=mail263c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbQNN-000789-GH for 47302-done@debbugs.gnu.org; Tue, 27 Apr 2021 12:15:54 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1619540147; bh=XbK44oq6xEeP/p9NG3F64KlmtQTi6+VhvsuRlKzz9SU=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=reHvlLrOwky7kVDbJbW1TS9VQTTmp3jZQx9WII6ap8DO+4SE537THChoZZumq8K9U 6SQTbPBPiVK36b8SwLSM9lTNaOUQrRxf22nJcsMLYg95mXvMTADbdTrqmQ64uTpT8b /qnmsbk+Xpcf3KmVHtYWlhDJzcKWGXd7LnC7QjOw= Feedback-ID: mattiase@acm.or Received: from [192.168.0.4] (c188-150-171-71.bredband.comhem.se [188.150.171.71]) (authenticated bits=0) by mail263c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 13RGFiIW030845; Tue, 27 Apr 2021 16:15:46 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.20\)) Subject: Re: bug#47302: 27.1; calc math-format-number formatting for floats without decimals is unusual From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= In-Reply-To: Date: Tue, 27 Apr 2021 18:15:43 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <58E10359-2CE0-4BF8-936E-47E5DCDA77E4@acm.org> References: <86k0q0nped.fsf@fsfe.org> <86v98ejr8x.fsf@fsfe.org> <0E7C5A4F-105A-4E1E-A103-BFB9C263F2BA@acm.org> To: Dave Gillespie X-Mailer: Apple Mail (2.3445.104.20) X-CTCH-RefID: str=0001.0A742F28.608838B2.00A0, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=LMMYv6e9 c=1 sm=1 tr=0 a=SF+I6pRkHZhrawxbOkkvaA==:117 a=SF+I6pRkHZhrawxbOkkvaA==:17 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=swAopTDVAAAA:8 a=BQn23e2CqDqX9w5xwXcA:9 a=CjuIK1q_8ugA:10 a=7aPqbiTMDNvH6kBvy-t8:22 X-Origin-Country: SE X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 26 apr. 2021 kl. 16.58 skrev Dave Gillespie : > > Yes, that patch makes sense. Good, patch pushed as-is. It can be tweaked later on if needed. Jelle, hope this helps. > Thanks, and thanks for helping with this old beast! Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.4 KHOP_HELO_FCRDNS Relay HELO differs from its IP's reverse DNS X-Debbugs-Envelope-To: 47302-done Cc: 47302-done@debbugs.gnu.org, Jelle Licht , Stefan Kangas X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 26 apr. 2021 kl. 16.58 skrev Dave Gillespie : >=20 > Yes, that patch makes sense. Good, patch pushed as-is. It can be tweaked later on if needed. Jelle, = hope this helps. > Thanks, and thanks for helping with this old beast! Happy to give a hand. Nowhere else in Emacs -- and I mean this in the = best possible way -- do I get a feeling of Mad Science as strongly as = when dealing with Calc. "Surely Calc doesn't attempt to do this... oh = yes. Yes it does." From unknown Sat Jun 14 03:50:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 26 May 2021 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator