On Sunday, 10 January 2016 at 12:11:39 UTC, Russel Winder wrote:
     foreach( dv; dvp){
         if(dv != dv){ // test for NaN
             return 1;
         }
     }
     return(0);
}

I am not convinced these "Tests for NaN" actually test for NaN. I
believe you have to use isNan(dv).

I saw it mentioned in another post, and tried it.  Works.

Reply via email to