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

st: reduce a variables numbers of digits to 4 counting from left


From   "Lassen, Peter, pla" <[email protected]>
To   <[email protected]>
Subject   st: reduce a variables numbers of digits to 4 counting from left
Date   Thu, 16 Jan 2003 15:29:59 +0100

Hi,

I have a numeric variable of 9-12 digits, of wich only the first 4 digits counting from the left is of importance. I therefore have to get rid of the remaining 5-8 digits.
But how?

Best regards and thanks
Peter 


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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