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 on April 23, and its replacement, statalist.org is already up and running.


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

st: RE: RE: comas in numbrers


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: comas in numbrers
Date   Tue, 27 Apr 2010 19:51:02 +0100

Comas are beyond my expertise. On commas, see 

SJ-8-2  dm0036  .  Stata tip 61: Decimal commas in results output & data
input
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  N.
J. Cox
        Q2/08   SJ 8(2):293--294                                 (no
commands)
        tip on using commas as decimal separators for output
        and input

Nick 
n.j.cox@durham.ac.uk 

Victor M. Zammit

how do you handle numbers with a coma to indicate thousands?

 drop _all

 input a

a
1. 2,345
2. 213
3. 34,456
4. 458
5. end

.
end of do-file

 l

+-----+
a
-----
1.    2
2.  213
3.   34
4.  458
+-----+


*
*   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