The NaN check is simply return f != f.
i was looking to check for a vary rare situation when i get NaN, its deep in some computation that i don't want to rearrange to preclude it.so i want to check for it, but i seem to need to add the Math package, and convert to 64bit, this is a very high price to pay for something that comes up less than 1 in 10e7+ cases, is there some other way? ( i was surprised there isn't a 32bit isNaN(). )
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.