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

st: question on datatypes


From   "NEYMOTIN, FLORENCE" <[email protected]>
To   [email protected]
Subject   st: question on datatypes
Date   Wed, 19 Oct 2005 22:09:05 -0700

Hello, I have a question, I have variables that are coded in as 2-3 digits and 6 decimal places after that, e.g. 150.089873 and I want to convert this to get rid of the decimal places so it looks like 150089873 but when I just multiply by 1000000 then it keeps storing it as a "float" display i.e. 1.5E8 and more than that, the last decimal places are actually INCORRECT in the new version...it will say 1.50089875 instead...which is INCORRECT. I am using Stata 8 and that is where this problem occurs. I was wondering what the easiest way is to change datatypes that something is input in so that it will not be a problem.
Thanks,
florence
*
* 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