![]() |
From | David Kantor <kantor.d@att.net> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: RE: Difference between codebook and count |
Date | Fri, 13 Jul 2007 06:58:58 -0400 |
At 05:54 AM 7/13/2007, Maarten Buis wrote:
--- Carlo Lazzaro wrote:[...]
> I have experienced the following problem (please, see details below) with .2
> value, which is reported with codebook but seemingly ignored with count.
> . codebook dosea1
> ----------------------------------------------------------------------------
> dosea1
> (unlabeled)
> ----------------------------------------------------------------------------
> type: numeric (float)
>
> range: [.2,1] units: .1
<snip>
>
>. count if dosea1==.2
> 0
This is a due to the fact that computers and Stata count in base-2 and we count
in base-10 numbers. The number .2 (base-10) cannot be held exactly in base-2.
© Copyright 1996–2025 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |