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.

Automatic conversion to a stringWhen a function or a method which expects a string as one of its arguments is passed anonstring value, this value is automatically converted to a string. For example, if the stringmethod indexOf is passed a number as its first argument, this number is treated like itsstring representation:Similarly, operators which take string operands automatically convert nonstring operands tostrings:The conversion to a string uses the toString method of the given value. All built in valueshave a toString method.224I 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!