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]

Re: st: Re: STATA mistakes divisions!


From   Alan Neustadtl <[email protected]>
To   [email protected]
Subject   Re: st: Re: STATA mistakes divisions!
Date   Thu, 15 Mar 2012 10:35:17 -0400

The calculation is precise but your display is not.
Try this:

di %22.20f 45315 / 19657
2.30528564887826230000

versus this:

. di 45315 / 19657
2.3052856

Best,
Alan


On Thu, Mar 15, 2012 at 10:28 AM, Francesco Vidoli <[email protected]> wrote:
> Hello,
> 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/

*
*   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