Re: Float Comparison Returns False

2011-07-09 Thread David Nadlinger
This has already been reported: http://d.puremagic.com/issues/show_bug.cgi?id=5089 David On 7/9/11 2:01 PM, bearophile wrote: Loopback: I weren't able to solve this error so if it's of anyone's interest I used this function instead; If you think you have found a bug in Phobos, then I sugg

Re: Float Comparison Returns False

2011-07-09 Thread bearophile
Loopback: > I weren't able to solve this error so if it's of anyone's interest I > used this function instead; If you think you have found a bug in Phobos, then I suggest you to add it to Bugzilla (with your working version too, if you want). Bye, bearophile

Re: Float Comparison Returns False

2011-07-09 Thread Loopback
On 2011-07-08 04:31, Loopback wrote: On 2011-07-08 02:28, bearophile wrote: Loopback: I do want to ask though what an alternative would be in this case, to compare the two different values. You mentioned something about "epsilons" but I have no experience within this field. I would really appr

Re: Float Comparison Returns False

2011-07-07 Thread Loopback
On 2011-07-08 02:28, bearophile wrote: Loopback: I do want to ask though what an alternative would be in this case, to compare the two different values. You mentioned something about "epsilons" but I have no experience within this field. I would really appreciate an example or something similar

Re: Float Comparison Returns False

2011-07-07 Thread Jonathan M Davis
On 2011-07-07 17:28, bearophile wrote: > Loopback: > > I do want to ask though what an alternative would be in this case, to > > compare the two different values. You mentioned something about > > "epsilons" but I have no experience within this field. I would really > > appreciate an example or som

Re: Float Comparison Returns False

2011-07-07 Thread bearophile
Loopback: > I do want to ask though what an alternative would be in this case, to > compare the two different values. You mentioned something about > "epsilons" but I have no experience within this field. I would really > appreciate an example or something similar so I could understand your > stat

Re: Float Comparison Returns False

2011-07-07 Thread Loopback
On 2011-07-07 20:35, Steven Schveighoffer wrote: On Thu, 07 Jul 2011 14:19:05 -0400, Loopback wrote: Hello! I've been programming some miscellaneous code and got stuck in an odd case. While comparing floats, two obviously identical values return false in comparison. I am not sure if this is

Re: Float Comparison Returns False

2011-07-07 Thread Steven Schveighoffer
On Thu, 07 Jul 2011 14:19:05 -0400, Loopback wrote: Hello! I've been programming some miscellaneous code and got stuck in an odd case. While comparing floats, two obviously identical values return false in comparison. I am not sure if this is related to float precision or something similar.

Re: Float Comparison Returns False

2011-07-07 Thread Simen Kjaeraas
On Thu, 07 Jul 2011 20:19:05 +0200, Loopback wrote: Hello! I've been programming some miscellaneous code and got stuck in an odd case. While comparing floats, two obviously identical values return false in comparison. I am not sure if this is related to float precision or something similar.

Float Comparison Returns False

2011-07-07 Thread Loopback
Hello! I've been programming some miscellaneous code and got stuck in an odd case. While comparing floats, two obviously identical values return false in comparison. I am not sure if this is related to float precision or something similar. This is the code that I have used: import std.stdio; v