string-to-int

string-to-int is an alias for `string-to-number' in `subr.el'.

(string-to-int STRING &optional BASE)

This function is obsolete since 22.1;
use `string-to-number' instead.

Parse STRING as a decimal number and return the number.
Ignore leading spaces and tabs, and all trailing chars. Return 0 if
STRING cannot be parsed as an integer or floating point number.

If BASE, interpret STRING as a number in that base. If BASE isn't
present, base 10 is used. BASE must be between 2 and 16 (inclusive).
If the base used is not 10, STRING is always parsed as an integer.