unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* 2 basic calc questions
@ 2023-01-20 23:06 Ryan Moszynski
  2023-01-21 14:07 ` tomas
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Ryan Moszynski @ 2023-01-20 23:06 UTC (permalink / raw)
  To: help-gnu-emacs

1) how do I get calc to display answers as a decimal with all trailing
digits until there are repeated zeros?

for example, I would like to display the result of
.5 * .09^2
as
0.00405

2) how do i get the calc trail window to scroll automatically so that
the bottom of the calc trail, with most recent calculation is always
shown?

thanks,

Ryan M

-- 
He felt that his whole life was some kind of dream and he sometimes
wondered whose it was and whether they were enjoying it. - Douglas
Adams



^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: 2 basic calc questions
@ 2023-01-21 17:11 Ryan Moszynski
  0 siblings, 0 replies; 10+ messages in thread
From: Ryan Moszynski @ 2023-01-21 17:11 UTC (permalink / raw)
  To: help-gnu-emacs

> What if there are infinitely many trailing digits?

I would like to see all significant digits after the decimal, up to
some sort of maximum number. I don't want to worry about losing
significant digits, and I don't want to see a ton of trailing zero's.

 I don't understand why 'accuracy' isn't something that can be set,
and I don't understand why there's not a way that i've found to tell
calc to: show me all the digit's that are meaningful, and in the case
that there are many meaningful digits, just show me the first 10 or
so.

https://www.gnu.org/software/emacs/manual/html_node/calc/Precision.html

"The accuracy is simply the number of digits after the decimal point
(again not counting trailing zeros). In Calc you control the
precision, not the accuracy of computations. If you were to set the
accuracy instead, then calculations like ‘exp(100)’ would generate
many more digits than you would typically need, while ‘exp(-100)’
would probably round to zero! In Calc, both these computations give
you exactly 12 (or the requested number of) significant digits."



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-03-19 20:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-20 23:06 2 basic calc questions Ryan Moszynski
2023-01-21 14:07 ` tomas
2023-01-21 19:07 ` H. Dieter Wilhelm
2023-01-27  1:41 ` Michael Heerdegen
2023-03-12 11:08 ` H. Dieter Wilhelm
2023-03-12 23:53   ` Michael Heerdegen
2023-03-18 17:15     ` H. Dieter Wilhelm
2023-03-18 18:34       ` Michael Heerdegen
2023-03-19 20:43         ` H. Dieter Wilhelm
  -- strict thread matches above, loose matches on Subject: below --
2023-01-21 17:11 Ryan Moszynski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).