Decimal String To Number

Converts the numeric characters in string, starting at offset, to a decimal integer and returns it in number. The connector pane displays the default data types for this polymorphic function.

string can be a string, a cluster of strings, an array of strings, or an array of clusters of strings.
offset is the starting position and must be numeric. The offset of the first character in the string is 0. If unwired or if less than 0, the default is 0.
default is any object of numeric representation and specifies the numeric representation for number. The default is a 32-bit signed integer value of 0.
offset past number is the index in string of the first character following the number. offset past number reflects the value from the last string if you input an array of strings.
number can be a number, a cluster, or an array of numbers, depending on the structure of string. If number is an integer, it may overflow if the input is out-of-range. In that case, number is set to the maximum or minimum value for the data type. For example, if the input string is 300, and the data type is a signed 8-bit integer, LabVIEW sets the value to 127. The following table shows how the values of string, offset, and default affect number.

stringoffsetdefaultoffset past numbernumberComments
13ax00213
–4.8bcde conversion002–4Because an integer is being converted, conversion stops at the decimal point.
a49b0–90–9default is used since no digits were read.