Go to the documentation of this file.00001 #ifndef OPENTISSUE_CORE_MATH_IS_NUMBER_H
00002 #define OPENTISSUE_CORE_MATH_IS_NUMBER_H
00003
00004
00005
00006
00007
00008
00009
00010 #include <OpenTissue/configuration.h>
00011
00012 #ifdef WIN32
00013 #include <float.h>
00014 #else
00015 #include <cmath>
00016 #endif
00017
00018 namespace OpenTissue
00019 {
00020 namespace math
00021 {
00022
00023 #ifdef WIN32
00024 #define is_number(val) (_isnan(val)==0) ///< Is a number test
00025 #else
00026 #if (__APPLE__)
00027 #define is_number(val) (std::isnan(val)==0) ///< Is a number test
00028 #else
00029 #define is_number(val) (isnan(val)==0) ///< Is a number test
00030 #endif
00031 #endif
00032
00033 }
00034
00035 }
00036
00037
00038 #endif