Because it isn't in the domain of the float type, of course.
So the question becomes: Why isn't the null pointer in the domain of floats? The answer: Implementation details. There's no way to change that without incurring runtime overhead, and even if that's acceptable it'd be a lot of work to change.
Besides, the null pointer isn't in the domain of integers either, but since it happens to be indistinguishable from the integer zero it works to assign it to integer variables anyway.
/ Martin Stjernholm, Roxen IS
Previous text:
2003-09-15 21:54: Subject: Re: float type weirdness
I agree with Al here. Why should you be able to assign NIL to every variable type except floats? It is even possible to do int(1..3) x=0;
/ Martin Nilsson (saturator)