1 Mar
2009
1 Mar
'09
1:02 a.m.
Steve;
It's weirdness, but I can't imagine a program in any language I know of actually having trouble parsing -0.0.
Aren't situations like this the reason why we have standards for the representation of floating point numbers? I seem to remember something like that. Ah, here it is; http://en.wikipedia.org/wiki/IEEE_754 Negative zero is a part of that standard. Sticking to that standard, even if it's slightly weird, will probably prevent issues more than cause them, I'd imagine. Yours, Kas.