Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: value of e [was: Date: Thu, 12 Jan 2006 21:34:32 +0100]


From   "Maarten Buis" <[email protected]>
To   <[email protected]>
Subject   RE: st: value of e [was: Date: Thu, 12 Jan 2006 21:34:32 +0100]
Date   Fri, 13 Jan 2006 10:47:42 +0100

Hi Nick,
I asked Victor to repost, because I suspected his question got chewed up somewhere on the way to the statalist. But Victor should indeed have used an informative title for his post.

Hi Victor,
In my previous answer I showed you how to get the first 8 digits of the number e. If you want to know more digits of the number e than you can type -di %20.15f exp(1)-. This will show you the first 16 digits of the number e. If you want to know even more digits you can look at http://antwrp.gsfc.nasa.gov/htmltest/gifcity/e.1mil , it will show you the first million digits of e. In theory you could use the format part (%20.15) of the -di- command to let Stata show you more digits, but comparing the results from the website with the Stata output shows no longer a match. This should not surprise you; since 16 digits is exactly the precision you would get in a variable with numeric storage type double. 

HTH,
Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology 
Vrije Universiteit Amsterdam 
Boelelaan 1081 
1081 HV Amsterdam 
The Netherlands

visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z214 

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


Nick Cox wrote:
> This question has already been answered. 
> Also, please informative titles for your posts. 

victor michael zammit wrote

> What I would like to know is how do I get Stata version 8 to
> work with more
> than 5 decimal places ,as I would like to work a little with
> the value of e
> ,which is not just :  e = 2.71828.................................. .



*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index