From: Emanuel Berg via help-gnu-emacs <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Calculator: no exponent, full number ?
Date: Wed, 05 Jun 2019 13:15:20 +0200 [thread overview]
Message-ID: <864l54th9z.fsf@zoho.eu> (raw)
In-Reply-To: 8636kpvupe.fsf@zoho.eu
> 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
next prev parent reply other threads:[~2019-06-05 11:15 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-04 19:43 Calculator: no exponent, full number ? jonetsu
2019-06-04 22:42 ` Emanuel Berg via help-gnu-emacs
2019-06-05 11:15 ` Emanuel Berg via help-gnu-emacs [this message]
2019-06-05 4:11 ` Marcin Borkowski
2019-06-05 4:26 ` Emanuel Berg via help-gnu-emacs
2019-06-05 13:53 ` jonetsu
2019-06-05 23:47 ` Emanuel Berg via help-gnu-emacs
2019-06-06 14:50 ` Nick Dokos
2019-06-26 4:09 ` Xavier Maillard
2019-06-06 15:47 ` Marcin Borkowski
2019-06-06 16:50 ` Emanuel Berg via help-gnu-emacs
2019-06-06 17:04 ` tomas
2019-06-06 17:11 ` Emanuel Berg via help-gnu-emacs
2019-06-06 17:25 ` tomas
2019-06-07 19:36 ` Marcin Borkowski
2019-06-14 12:20 ` Van L
2019-06-14 13:26 ` Robert Pluim
2019-06-14 19:57 ` Stefan Monnier
2019-06-15 9:29 ` Van L
2019-06-14 19:43 ` Emanuel Berg via help-gnu-emacs
2019-06-15 9:23 ` Van L
-- strict thread matches above, loose matches on Subject: below --
2019-06-06 17:28 Joe Trivers via help-gnu-emacs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=864l54th9z.fsf@zoho.eu \
--to=help-gnu-emacs@gnu.org \
--cc=moasenwood@zoho.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.