Re: float32, float64?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Bernie Ryan responded:
> I don't use these to test atoms. The idea of type define is to prevent
> a variable from accepting a value that is within a given range. I use
> them as a new user defined variable types.

That's perfectly fine. However, look closely at what Lucius asked for in his
original post:

Lucius originally wrote:
>I don't think I should have to convert the value to a float32
>sequence and back just to see if the stored value is accurate.
>
>    I know that float64 is as accurate as I can get.  I don't
>want to store numbers as float64 if I can accurately store
>them as float32.

Notice how the word "accurate" is stressed. My interpretation of this was
that he wanted a check for the most *accurate* machine type, not simply the
general numeric ranges. If my impression is wrong, I apologize, but I wanted
to be sure that his concerns about accuracy were addressed.


Hep yadda,
Gabriel Boehme

----------
Reason is always a kind of brute force; those who appeal to the head rather
than the heart, however pallid and polite, are necessarily men of violence.
We speak of "touching" a man's heart, but we can do nothing to his head but
hit it.

G.K. Chesterton
----------

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu