FRAMES NO FRAMES

IloFloor

public IloEvaluator< IloObject > IloFloor(IloEvaluator< IloObject > eval)
Definition file: ilsolver/iloselector.h
Include file: <ilsolver/iloselector.h>

This function creates a composite IloEvaluator<IloObject> instance. This evaluator returns the largest integer value not greater than the float value returned by the evaluator given as argument.

For more information, see Selectors.


IloFloor

public IloNum IloFloor(IloNum val)
Definition file: ilconcert/iloenv.h
Returns the largest integer value not greater than the argument.

This function computes the largest integer value not greater than val.

Examples:

 IloFloor(IloInfinity) is IloInfinity.
 IloFloor(-IloInfinity) is -IloInfinity.
 IloFloor(0) is 0.
 IloFloor(0.4) is 0.
 IloFloor(-0.4) is -1.
 IloFloor(0.5) is 0.
 IloFloor(-0.5) is -1.
 IloFloor(0.6) is 0.
 IloFloor(-0.6) is -1.