Bill Coffman wrote: > There is no platform independent way to produce "NaN" or "Inf", so IMHO, > you > did it the only way it can be done. > > That being said, you can optimize by looking at the bits. Wikipedia > explains IEEE-754 http://en.wikipedia.org/wiki/IEEE_754
Many thanks for your thoughts, Bill. Your suggestion seems a lot easier than all this platform probing stuff I had in mind. For platforms that don't use IEEE 754, like the VAX you mentioned, I guess we can always come up with something else if the need arises. > Personally, I'd like to see the "i" in "inf" capitolized or the "N"s in > "NaN" lower case. I like capital I for Inf. Sounds good to me. I'll change it to your suggested "Inf" and "NaN." Thanks, Ron