Generated on Wed Nov 1 15:05:21 2006 for Gecode by doxygen 1.4.5

Gecode::Limits::Int Namespace Reference


Detailed Description

Numerical limits for integer variables.

The integer limits are chosen such that addition and subtraction of two values within the limits can be done safely without numerical overflow. Also, changing the sign is always possible without overflow.


Variables

const int int_max = ((INT_MAX)>>1) - 1
 Largest allowed integer value.
const int int_min = -int_max
 Smallest allowed integer value.
const double double_max = 9007199254740991.0
 Largest double that can exactly be represented.
const double double_min = -9007199254740991.0
 Smallest double that can exactly be represented.


Variable Documentation

const int Gecode::Limits::Int::int_max = ((INT_MAX)>>1) - 1
 

Largest allowed integer value.

Definition at line 57 of file limits.hh.

const int Gecode::Limits::Int::int_min = -int_max
 

Smallest allowed integer value.

Definition at line 59 of file limits.hh.

const double Gecode::Limits::Int::double_max = 9007199254740991.0
 

Largest double that can exactly be represented.

Definition at line 62 of file limits.hh.

const double Gecode::Limits::Int::double_min = -9007199254740991.0
 

Smallest double that can exactly be represented.

Definition at line 64 of file limits.hh.