Bookmark and Share

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   Raffaele Palladino <[email protected]>
To   [email protected]
Subject   Re: st: splitting a value from its dps! Calculating age from its value with decimal points
Date   Thu, 5 Dec 2013 11:52:52 +0000

Thank you very much!

2013/12/5 daniel klein <[email protected]>:
> 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/
*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index