> > #ifndef HUGE_VALF > #ifndef HUGE_VAL > #ifndef MAX_FLT > #warning don't know how to define HUGE_VALF > #else > #define HUGE_VALF MAX_FLT > #endif > #else > #define HUGE_VALF (float)HUGE_VAL > #endif > #endif More significantly, neither of these will work unless you #include <cmath> and/or float.h. -Chris