CoinUtils
2.9.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
CoinUtils
src
CoinFinite.hpp
Go to the documentation of this file.
1
/* $Id: CoinFinite.hpp 1423 2011-04-30 10:17:48Z stefan $ */
2
// Copyright (C) 2002, International Business Machines
3
// Corporation and others. All Rights Reserved.
4
// This code is licensed under the terms of the Eclipse Public License (EPL).
5
6
/* Defines COIN_DBL_MAX and relatives and provides CoinFinite and CoinIsnan. */
7
8
#ifndef CoinFinite_H
9
#define CoinFinite_H
10
11
#include <limits>
12
13
//=============================================================================
14
// Smallest positive double value and Plus infinity (double and int)
15
16
#if 1
17
const
double
COIN_DBL_MIN
= std::numeric_limits<double>::min();
18
const
double
COIN_DBL_MAX
= std::numeric_limits<double>::max();
19
const
int
COIN_INT_MAX
= std::numeric_limits<int>::max();
20
const
double
COIN_INT_MAX_AS_DOUBLE
= std::numeric_limits<int>::max();
21
#else
22
#define COIN_DBL_MIN (std::numeric_limits<double>::min())
23
#define COIN_DBL_MAX (std::numeric_limits<double>::max())
24
#define COIN_INT_MAX (std::numeric_limits<int>::max())
25
#define COIN_INT_MAX_AS_DOUBLE (std::numeric_limits<int>::max())
26
#endif
27
29
extern
bool
CoinFinite
(
double
val);
30
32
extern
bool
CoinIsnan
(
double
val);
33
34
#endif
Generated by
1.8.3.1