Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: string function problem

From   Ricardo Ovaldia <>
Subject   Re: st: string function problem
Date   Wed, 20 Aug 2003 05:26:45 -0700 (PDT)

--- Joseph Coveney <> wrote:

> The formatted string function needs to have the
> format specified as a
> numeric type, that is, "%16.0f" and not "%16".

Thank you Joseph. I had actually typed

. generate y = string( a1,"%16s")

(It was wrong in my post)

I though that the format had to be a string format.
According to the help file:

"string(n,"%fmt") converts n into a string with %fmt
display format."


Ricardo Ovaldia, MS
Oklahoma City, OK

Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index