[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: St: Programming question, local macros
Could someone please explain the following behavior? I'm running fully
up to date Stata 8.2 on Windows 2000.
In a program I have the following statements (with responses
. local x = -4
. display `x'
. local xsq=`x'^2
. disp `xsq'
I kind of expected xsq to have the value of 16 rather than -16.
Thanks in advance.
Department of Biostatistics
Vanderbilt School of Medicine
S-2323 Medical Center North
Nashville, Tennessee 37232-2158
* For searches and help try: