/* $Id$ */// Copyright (C) 2002, International Business Machines// Corporation and others. All Rights Reserved.// This code is licensed under the terms of the Eclipse Public License (EPL)./* Defines COIN_DBL_MAX and relatives and provides CoinFinite and CoinIsnan. */#ifndef CoinFinite_H#define CoinFinite_H#include <limits>//=============================================================================// Smallest positive double value and Plus infinity (double and int)#if 1constdoubleCOIN_DBL_MIN=(std::numeric_limits<double>::min)();constdoubleCOIN_DBL_MAX=(std::numeric_limits<double>::max)();constintCOIN_INT_MAX=(std::numeric_limits<int>::max)();constdoubleCOIN_INT_MAX_AS_DOUBLE=(std::numeric_limits<int>::max)();#else#define COIN_DBL_MIN (std::numeric_limits< double >::min())#define COIN_DBL_MAX (std::numeric_limits< double >::max())#define COIN_INT_MAX (std::numeric_limits< int >::max())#define COIN_INT_MAX_AS_DOUBLE (std::numeric_limits< int >::max())#endif/** checks if a double value is finite (not infinity and not NaN) */externboolCoinFinite(doubleval);/** checks if a double value is not a number */externboolCoinIsnan(doubleval);#endif/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2*/