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

st: Re: RE: data representation

From   "Katsuhide Isa" <>
To   <>
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

(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.


*   For searches and help try:

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