Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Formatting local variables


From   "Ashim Kapoor" <[email protected]>
To   [email protected]
Subject   Re: st: Formatting local variables
Date   Thu, 28 Aug 2008 12:00:21 +0530

I meant a local Macro.

if I say

local m=3.123442

how do I say format %6.2f m and get the right result.

Thank you for your time and effort.
Ashim.

On Thu, Aug 28, 2008 at 11:55 AM, Maarten buis <[email protected]> wrote:
> --- Ashim Kapoor <[email protected]> wrote:
>> I meant a local variable.
>
> In Stata there exists no such thing as a local variable. There are
> macros which can be local or global (described in -help macro-), and
> usually refered to as locals and globals though I assume that their
> full name is local macro and global macro. There are also temporary
> variables, which are described in -help tempvar-.
>
> So I repeat my question, which one do you mean?
>
> -- Maarten
>
> -----------------------------------------
> Maarten L. Buis
> Department of Social Research Methodology
> Vrije Universiteit Amsterdam
> Boelelaan 1081
> 1081 HV Amsterdam
> The Netherlands
>
> visiting address:
> Buitenveldertselaan 3 (Metropolitan), room Z434
>
> +31 20 5986715
>
> http://home.fsw.vu.nl/m.buis/
> -----------------------------------------
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
> *
> *   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index