Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: Tostring (string from a numerical variable)


From   Scott Merryman <scott.merryman@gmail.com>
To   statalist@hsphsun2.harvard.edu
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 <martin.weiss1@gmx.de> 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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index