Bookmark and Share

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

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

st: error calculating powers

From   "Y.R.E. Retamal" <>
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?

*   For searches and help try:

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