Statalist The Stata Listserver

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

Re: st: Format problem?

From   "Michael Blasnik" <>
From   "Andrzej Niemierko" <aniemierko@PARTNERS.ORG>
To   <>
Subject   Re: st: Format problem?
Subject   Re: st: Format problem?
Date   Sun, 29 Jan 2006 12:32:35 -0500

Thank you all for your kind responses. Indeed, using double solved this
annoying and important problem (the numbers are id numbers of patients). I
think that double (not float) should be a default setting in STATA. Saving
some memory is an important issue for only a small percentage of problems.
In general, it is better to hold IDs as string variables to make sure they are exactly what you think they should be -- regardless of how many digits they may have or other issues like leading zeros. The default float vs. double issue comes up fairly often. Perhaps the manuals should highlight this issue more and also the fact that you can change the default to double.

Michael Blasnik
* For searches and help try:

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