Visual Studio was choking on isnan; it worked in StreamDisplay by including <float.h>, and that works here too.