Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "Feiveson, Alan H. (JSC-SK311)" <alan.h.feiveson@nasa.gov> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | RE: st: variable format (graphics example) |
Date | Thu, 10 Mar 2011 16:12:01 -0600 |
Daniel - That's because I was trying to implement -tostring- by hand! Thanks for making me aware of it. Al -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Daniel Klein Sent: Thursday, March 10, 2011 3:59 PM To: statalist@hsphsun2.harvard.edu Subject: RE: st: variable format (graphics example) Changing . gen ru = round(u,.01) to . tostring u ,g(ru) format(%9.2f) force in your example, might be what you are looking for. However, I do not see how this is "too much work", so probably I don't see the point. -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de * * 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/