Owning Palette: String/Number Conversion Functions
Requires: Base Development System
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.
If you want the function to return a 64-bit integer output, you must wire a 64-bit integer to the default input.
|string can be a string, a cluster of strings, an array of strings, or an array of clusters of strings.|
|offset specifies number of characters into string at which the function starts searching for a match. offset must be numeric. The offset of the first character in string is 0. If offset is unwired or less than 0, the function takes offset as 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 can 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 8-bit signed integer, LabVIEW sets the value to 127. The following table shows how the values of string, offset, and default affect number.|