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: Tostring (string from a numerical variable)
From
Scott Merryman <[email protected]>
To
[email protected]
Subject
Re: st: Tostring (string from a numerical variable)
Date
Wed, 17 Mar 2010 12:14:13 -0500
I am not sure I follow...or...yes, the negative sign is not the
problem in this case.
Scott
On Wed, Mar 17, 2010 at 12:02 PM, Martin Weiss <[email protected]> wrote:
>
> <>
>
> But the connection to the "-" sign is simply not there. Your code with a
> positive large number causes the exact same effects:
>
>
> *************
> clear
> set obs 1
> gen double x = 123456789123456
> tostring x, gen(strx)
> tostring x, gen(strx) format(%17.0g)
> *************
>
*
* 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/