Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: RE: Re: STATA mistakes divisions!


From   Nick Cox <n.j.cox@durham.ac.uk>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Re: STATA mistakes divisions!
Date   Thu, 15 Mar 2012 14:36:46 +0000

Not so: 

. di %23.18f  45315 / 19657
   2.305285648878262300

. about

Stata/SE 12.1 for Windows (32-bit)
Revision 06 Feb 2012
Copyright 1985-2011 StataCorp LP

I'll bet you that what you are quoting is a value of a -float- variable. Your punishment is that you got what you asked for, holding results to less precision. 
The problem is yours, not understanding what you asked for! 

What science are you in that needs precision to 1 part in 10^7? Particle physics? 

Nick 
n.j.cox@durham.ac.uk 

P.S. It's STATA, not Stata. 

Francesco Vidoli

I just realized that STATA mistake divisions at 7-8 decimal place!
I know it sounds strange, but try to do 45315 / 19657 ....

SAS:      2.30528564887826
STATA:  2,30528569221496
Excel:    2,30528564887826
Mathematica: http://www.wolframalpha.com/input/?i=45315%2F19657


It's not a good job for a scientific software!!


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index