[CoinUtils] COIN_C_FINITE and DBL_MAX (CoinFinite.cpp)
Matthew Galati
matthew.galati at gmail.com
Thu Sep 24 14:32:24 EDT 2015
If COIN_C_FINITE is not defined, I don't see where DBL_MAX is defined.
Should this be using COIN_DBL_MAX instead?
bool CoinFinite(double val)
{
#ifdef COIN_C_FINITE
return COIN_C_FINITE(val)!=0;
#else
return val != DBL_MAX && val != -DBL_MAX;
#endif
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/coinutils/attachments/20150924/628c8d34/attachment.html>
More information about the CoinUtils
mailing list