Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: RE: Re: STATA mistakes divisions!


From   Nick Cox <[email protected]>
To   "'[email protected]'" <[email protected]>
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 
[email protected] 

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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index