stringtoint/2—convert a string value to an integer value

The stringtoint/2 primitive converts a string value to an integer value.

stringtoint($STRVAL,$INTVAL)
$INTVAL=stringtoint($STRVAL)

stringtoint/2 arguments

Argument

Mode

Type

Description

$STRVAL

Input

STRING

Specifies the string value to be converted to an integer

$INTVAL

Output

INTEGER

The conversion result, returned as an integer

Use stringtoint/2 to convert a string value specified in the $STRVAL argument to an integer value returned in $INTVAL.

stringtoint/2 example

$INTVAL = stringtoint($E.msg);
Was this page helpful? Yes No Submitting... Thank you

Comments