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: splitting a value from its dps! Calculating age from its value with decimal points
From
daniel klein <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: splitting a value from its dps! Calculating age from its value with decimal points
Date
Thu, 5 Dec 2013 12:28:04 +0100
See -help floor()-
Best
Daniel
--
Hello, I had to calculate my age starting from age and month of the
present (interview) and age and month of the birth
[...]
If someone has 20.6
years it is still 20 years while the program would convert it in 21!
[...]
So basically I need to split the number and get only the part before
the comma.. how to do that? I am sure it is quite easy but somehow
internet was not very useful this time!
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/