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

st: Re: RE: data representation


From   "Katsuhide Isa" <[email protected]>
To   <[email protected]>
Subject   st: Re: RE: data representation
Date   Sun, 29 Dec 2002 16:21:20 +0900

To Frank and Marcelo:

Thank you for your responses, and sorry for my late
reply.

(Frank wrote)
> The -float()- function rounds its argument to floating place accuracy, but
> doesn't change how it's stored since that's integral to its binary
> representation. In short, what you want is
>
> assert z_coef>=float(3.05) & z_coef<=float(5.55)
> Not commands like
> replace z_coef = float(5.55) if year == 1991
> because, as assert told you, -float()- didn't (and can't) change how the
> number is stored.

Thank you for your advice. It worked fine.
I wonder why I didn't come up with such a simple solution.

----------
(Marcelo wrote)
> Type help datatypes to get the following info:

Thank you for your info.
It helped a lot to get deeper undestanding about the issue.

K.I.




*
*   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