From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Emanuel Berg via help-gnu-emacs Newsgroups: gmane.emacs.help Subject: Re: Calculator: no exponent, full number ? Date: Wed, 05 Jun 2019 13:15:20 +0200 Message-ID: <864l54th9z.fsf@zoho.eu> References: <20190604154307.565d33cf@mistral> <8636kpvupe.fsf@zoho.eu> Reply-To: Emanuel Berg Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="136866"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 05 13:15:53 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hYTtY-000ZQc-NH for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Jun 2019 13:15:52 +0200 Original-Received: from localhost ([127.0.0.1]:39514 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYTtX-0006KD-Ow for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Jun 2019 07:15:51 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYTtI-0006K4-BU for help-gnu-emacs@gnu.org; Wed, 05 Jun 2019 07:15:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hYTtG-00011q-Mv for help-gnu-emacs@gnu.org; Wed, 05 Jun 2019 07:15:36 -0400 Original-Received: from [195.159.176.226] (port=38558 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hYTtG-0000rQ-G6 for help-gnu-emacs@gnu.org; Wed, 05 Jun 2019 07:15:34 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hYTt9-000YyZ-3E for help-gnu-emacs@gnu.org; Wed, 05 Jun 2019 13:15:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Mail-Copies-To: never Cancel-Lock: sha1:0SQw3ugyrwy20xD+CupaII5Pjno= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:120752 Archived-At: > I don't think so from browsing the variables, > but I might be wrong, so I CC this to Eli > Barzilay [...] I got an answer to my private mail! I don't know if it reached the list tho. Anyway here it is: ++ Is it possible to show results of the ++ calculator (M-x calculator) without the ++ exponent but instead the full number ++ with all digits ? + + I don't think so from browsing the + variables, but I might be wrong, so I CC + this to Eli Barzilay who wrote it - see + the source [...] for his e-mail. I dug into the code, and there's a hard-wired 1e8 there which makes it decide to use `format` with "%e" instead of "%f". I obviously don't remember why I hard-wired it without making it customizable (maybe it made more sense in a 32-bit world), so a cheap way to make it possible is to turn it into a variable. A better way would be to make it interactively changeable. BTW, without any modifications, you can hit ' (quote) until it says that it's using the Emacs printer, and that will do what Emacs does. (Again, that's obviously different now than what it did 20y ago.) (Yet another possibility is to set `calculator-copy-displayer` to "%S" so when you copy values out you get whatever Emacs does.) + He wrote it way back in 1998 tho (20y 11m + 20d (7659d) ago if we assume 1998-06-15) + ... Actually, I wrote it about 1-2 years before I thought it could be useful publicly... -- underground experts united http://user.it.uu.se/~embe8573 https://dataswamp.org/~incal