company logo

Option :: toInteger - Get option value as number

The function returns the option value as integer value. When the string set for the option does not represent a numeric value or the option is not defined, the function returns 0.

Notes:

Conversion from option value to integer uses standard conversion, which will stop at the first non-numeric caracter in the option value. Thus, an option value 1/5 would result in 1.

Return value:  Integer value ( int32  )

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

Implementation details

int32 Option  :: toInteger (  )