Returns the decimal value of this string as an integer.
Only the first contiguous digits are used. An empty string or any string not starting with a digit will return 0.