From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74760: 29.4; Calc : calcFunc-rate does not produce negative results Date: Tue, 10 Dec 2024 17:00:08 +0100 Message-ID: <8734ivtto7.fsf@web.de> References: <87ldwobycr.fsf@BULLSEYE-debian-live-builder> <86pllzbrkv.fsf@gnu.org> Reply-To: Michael Heerdegen Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27177"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 74760@debbugs.gnu.org, Ting Boon Ghee To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 10 17:00:26 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tL2ev-0006vb-Va for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Dec 2024 17:00:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tL2eb-0008Ao-9P; Tue, 10 Dec 2024 11:00:05 -0500 Original-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 1tL2eZ-00089Z-L6 for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2024 11:00:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tL2eZ-0003cw-Ac for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2024 11:00:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=N7xHUJQSi4fzUv80f0Ge81cMTygC+HIl1mNfauQmStA=; b=E/fTllV/E7L1Y1+sZdpdQpU3xjVaeDtpNiM/HpO2XhA8h20/S4c+8DU5nYGIdOTMkPHkXjc+WTm4wwgbUWceMYcH32miXBbDS2a9e6KMITO6b+k/Ie3eK633+M28/KhGXeaUDTMqUMezSuZHbdcylSb7j0piOVcx1i2zZ+f5IUaIetx+KpGkmvSKT2sfMVIzwhgG+S4i5L2BjwucPSHUdHzKpPVBH7caBfheri5NO0USaoClK6juTK2hB7fhvOTFHlH8W7lslPNw3A77SiC93pL3Fsi3IVbMQdjofQXsOB1cfeZwYzw5Ug1isvtzrWAhxZN5n7TEmdX5WMfDLqL/sw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tL2eY-0000aj-RO for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2024 11:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Dec 2024 16:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74760 X-GNU-PR-Package: emacs Original-Received: via spool by 74760-submit@debbugs.gnu.org id=B74760.17338463582115 (code B ref 74760); Tue, 10 Dec 2024 16:00:02 +0000 Original-Received: (at 74760) by debbugs.gnu.org; 10 Dec 2024 15:59:18 +0000 Original-Received: from localhost ([127.0.0.1]:59187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tL2dp-0000Y3-KQ for submit@debbugs.gnu.org; Tue, 10 Dec 2024 10:59:17 -0500 Original-Received: from mout.web.de ([212.227.15.3]:56469) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tL2dn-0000Xm-9K for 74760@debbugs.gnu.org; Tue, 10 Dec 2024 10:59:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1733846346; x=1734451146; i=michael_heerdegen@web.de; bh=N7xHUJQSi4fzUv80f0Ge81cMTygC+HIl1mNfauQmStA=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=FTwhWP+Tzxtht5xKYf9U/rLx825xGLuLAPMo8/ns1NNuSCSZ0rL7zhmNSEu03PLj ss001OTDgE4PBsR+g0KFyLDnoK67ySvGOY15MwXd8xc2EW+VRmVzBEGNqd03XdhWK A5pzmUnbiM6tXIJrtgChvbmM4ksMH9eJYnbXjH/GRagnupzZYZKUoR10yDuRsHUbP sMQgS0NQ+0tLuiBK7s3MqLLKn556vDLjYRCIGCDH7f6iPJ4cVIUooLD/LsvGBlC0X 1x4A2J6rdg44Z6wocrOHTD84lZ2yDCfCtKtnM9AD0sZCKEROOMdtFcviGQLkuqrP3 sZvwjRPYJWxTmm88ZA== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Original-Received: from drachen.dragon ([92.75.138.197]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MUCut-1tCxsv0ldr-00YJY9; Tue, 10 Dec 2024 16:59:06 +0100 In-Reply-To: <86pllzbrkv.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 10 Dec 2024 15:22:40 +0200") X-Provags-ID: V03:K1:ohCIuN77NLfS+VcKHLCuApgdP/hzUhEbldsGsqjel8HPlz1dmRU co+BkX21shguL0XUZfhm3O+BiJKevzq1Ncm2kl3E1nwHHsQQQ+nBETixPGWMH5LE1Oh8ltc yKsQ0lCZ4VRwtsdnu8UDLsDtU1SlRG0mTigjdql5QppdrTku4Am7bTQTpvxv8i1xwwrw3Mw P9iZRImP6nUWCmK2RDMAQ== UI-OutboundReport: notjunk:1;M01:P0:j0+ZsfA3Fqo=;numIROetQRi6myaHjK/LW3Q9F/u VW1+BdTJ+SKo6QvCLYGXYBlAnwLJMZPXqF7eNB1vvik0PqcDQGo1R/+WY1ZI5fBe9ktx0ZNYp MVwCzmoyodBfEupf1ad14hhrTR3NFqqosWCHcSgnbTAd2K456H1ROVsj0Q84NEaqyvReepZQx /lddOccaqk94dv8xvwIqRkKezULNuqXs3s2pTeb+HuEbMdB8G2lvjfvN2sBaaUZlEFN+EBqJT CQSRDazCc0AxvWfqhlz18h4BHQhKEd2+WeKv0Mh2LZtw5SDDft3xI51aS65igZJdfF2aEunhh 1uFkZUSRmom4gTrelrl9/Oy8Bt1BwEunvB3z4v77SDADtM5CJn956KN9hw55+3yQJDqxd2XYD XqkVgFIX+9/S/fWVxAOroavVNMeKdyg40vk2pogpTH0HYjOS7z7opqI4NnPmuBOrxTfKNEZbx ksoHU3L4XjRkPDhAtcWaRdcNffmfC5+FQRNOok6LB6n+YsarNN8sGK13uKRoGgkp2pq82RRHg xiTH5DbCewGsxgmi10sOZRCL/avr3Dgp5xy1eTw8UrcjxAyrxOwBj270o5VXe1Hs2/bjZvExs GivcAxL9jfbH3P7I2tM28R7L6vUEvECI1Ul++fPOFcpdJRNiyyuY/4jErDiMF+wDK2HB0wMRm wqlUo8o5sgsJJv/DW/DbStRtEw7/6zd+pkKQJ1IdoZE/ryAw6k7jGpr33dYQ3PemngU6l9Yta fWn7RY7Ki6djBJxB98wNdB/0v05V7C+2/xaGmqP7GpS/WaMmq1GbFji/RMtuFSj4ECURucnu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296765 Archived-At: Eli Zaretskii writes: > Isn't it true that in the financial world there are no negative rates, > only positive rates written in red color? Maybe this explains what > you see? It's probably not related but: this part of `calc-fin-rate' is clearly suspicious: (calc-to-percentage (calc-normalize (cons (if (calc-is-hyperbolic) 'calcFunc-ratel (if (calc-is-hyperbolic) 'calcFunc-rateb ;; !@?! 'calcFunc-rate)) (calc-top-list-n n)))) Looks like one of those two identical `calc-is-hyperbolic' tests must be replaced with `calc-is-inverse' (the second one?). Michael.