12.07.2015 Views

ILOG OPL Development Studio Language Reference Manual

ILOG OPL Development Studio Language Reference Manual

ILOG OPL Development Studio Language Reference Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

IntegersShows how to declare integers in the <strong>OPL</strong> language.<strong>OPL</strong> provides the subset of the integers ranging from -2 31 + 1 to 2 31 – 1 as a basic data type.<strong>OPL</strong> also contains the integer constant maxint, which represents the largest positive integeravailable.A declaration of the formint i = 25;declares an integer, i, whose value is 25.The initialization of an integer can be specified by an expression. For instance, the declarationint n = 3;int size = n*n;initializes size as the square of n. Expressions are covered in detail in Expressions.18I L O G O P L D E V E L O P M E N T S T U D I O L A N G U A G ER E F E R E N C E M A N U A L

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!