Re: limits.e (was: NAN)
- Posted by CChris <christian.cuvier at agri?ulture.g?uv.fr> Aug 10, 2007
- 502 views
Jason Gade wrote: > > Okay, I've written and tested this and I think that it's correct. I need to > pay better attention to my sig... > > I'll put it in the upload area if anyone is interested: > <a > href="http://www.rapideuphoria.com/uploads/limits.e">http://www.rapideuphoria.com/uploads/limits.e</a> > > I found that on Windows running the interpreter, you *can* compare two NANs > for equality. I'll have to check with the translator and on Linux whether that > is also true. > > -- > "Any programming problem can be solved by adding a level of indirection." > --anonymous > "Any performance problem can be solved by removing a level of indirection." > --M. Haertel > "Premature optimization is the root of all evil in programming." > --C.A.R. Hoare > j. You can always do that. But does a NaN equal itself? According to IEEE 754 standards, it shouldn't. And if it does, it means some machine code has to be used to test for NaN (bit patterns may differ across architectures). Not much, but a little. CChris