wrote:
> actually i want to check wether two float values are equal or not
> equal
> i.e suppose t and t1 are two float values and i want to check wether t
> and t1 are equal or not
>
> please send in syntax form as in code form
>
> please tell me how to do,
Please quote relevant parts of the post to which you are replying. This
is good practise on Usenet.
Comparing floats for equality is fraught with danger as many values are
not perfectly representible in binary floating point. You might find
that you need to allow for a small variation on either side of the
comparison value, just like the margin of error in scientific
experiments.
You might want to read:
<http://www.cygnus-software.com/papers/comparingfloats/Comparing%20floating%20point%20numbers.htm>
<http://docs.sun.com/source/806-3568/ncg_goldberg.html>