if you are inserting the data through a stored proc and you are passing "–1.#QNAN" parameter as a varchar type, then you can check it out using: if isnumeric(@paramname) ...
if you are inserting it directly from a client program, then you should do the validation there before even sending it to sql server.
alfredp77