[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
"NEYMOTIN, FLORENCE" <neymotin@calmail.berkeley.edu> |

To |
statalist@hsphsun2.harvard.edu |

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/

**Follow-Ups**:**Re: st: question on datatypes***From:*Keith Dear <keith.dear@anu.edu.au>

- Prev by Date:
**st: returned values for stata survival commands** - Next by Date:
**st: RE: Re: RE: controlling what variables to dropping?** - Previous by thread:
**st: MRI** - Next by thread:
**Re: st: question on datatypes** - Index(es):

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