[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Re: RE: data representation
To Frank and Marcelo:
Thank you for your responses, and sorry for my late
> 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.
> 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: