help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2 basic calc questions


From: Ryan Moszynski
Subject: Re: 2 basic calc questions
Date: Sat, 21 Jan 2023 12:11:36 -0500

> 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."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]