company logo

String :: toInteger - Returns the string converted to a 32 bit integer

Returns the string converted to an signed long using base 10. When a conversion error occurs, an exception is thrown. In order to avoid exceptions, one may call isNumber() before converting.

Return value:  Integer value ( int32  )

The value is passed as platform independent 32-bit integer value.

Implementation details

int32 String  :: toInteger (  )