Re: Float comparison
- From: Richard Heathfield <rjh@xxxxxxxxxxxxxxx>
- Date: Tue, 05 May 2009 06:37:42 +0000
CBFalconer said:
<snip>
FP objects can only
store discrete values, with defined intervals between the
available values. Thus you can never tell which value in that
range was stored,
There's your problem right there. You are confusing "value" and
"interpretation". The value that was stored is easy to discover,
simply by looking. What you meant when you stored it there is a
completely different matter.
<snip>
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
.
- Follow-Ups:
- Re: Float comparison
- From: CBFalconer
- Re: Float comparison
- References:
- Re: Float comparison
- From: *** T. Winter
- Re: Float comparison
- From: Gordon Burditt
- Re: Float comparison
- From: Keith Thompson
- Re: Float comparison
- From: CBFalconer
- Re: Float comparison
- Prev by Date: Re: Singly Linked List in C
- Next by Date: Re: comare tow int
- Previous by thread: Re: Float comparison
- Next by thread: Re: Float comparison
- Index(es):