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: error calculating powers


From   "Y.R.E. Retamal" <[email protected]>
To   [email protected]
Subject   st: error calculating powers
Date   Tue, 11 Feb 2014 10:59:06 +0000

Dear list

I need to calculate large numbers using STATA. For example, 3333^3 = 37025927037

However, when I calculate it using STATA,

g example=3333^3
format %15.0f

The "example" variable shows the following values: 37025927168, quite different from the true value.
Do you have any idea about this?

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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index