Owning Palette: String Functions
Requires: Base Development System. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.
Use the String/Number Conversion functions to convert strings.
Palette Object | Description |
---|---|
Decimal String To Number | Converts the numeric characters in string, starting at offset, to a decimal integer and returns it in number. |
Format Value | Converts a number into a regular string according to the format specified in format string and appends this to string. |
Fract/Exp String To Number | Interprets the characters 0 through 9, plus, minus, e, E, and the decimal point (usually period) in string starting at offset as a floating-point number in engineering notation, exponential, or fractional format and returns it in number. |
Hexadecimal String To Number | Interprets the characters 0 through 9, A through F, and a through f in string starting at offset as a hex integer and returns it in number. |
Number To Decimal String | Converts number to a string of decimal digits at least width characters wide or wider if necessary. If number is floating-point or fixed-point, it is rounded to a 64-bit integer before conversion. |
Number To Engineering String | Converts number to an engineering format, floating-point string at least width characters wide or wider if necessary. |
Number To Exponential String | Converts number to an E-format (exponential notation), floating-point string at least width characters wide or wider if necessary. |
Number To Fractional String | Converts number to an F-format (fractional notation), floating-point string at least width characters wide or wider if necessary. |
Number To Hexadecimal String | Converts number to a string of hexadecimal digits at least width characters wide or wider if necessary. The digits A–F always appear in uppercase in the output string. If number is floating-point or fixed-point, it is rounded to a 64-bit integer before conversion. |
Number To Octal String | Converts number to a string of octal digits at least width characters wide or wider if necessary. If number is floating-point or fixed-point, it is rounded to a 64-bit integer before conversion. |
Octal String To Number | Interprets the characters 0 through 7 in string starting at offset as an octal integer and returns it in number. This function also returns the index in string of the first character following the number. |
Scan Value | Converts characters at the beginning of string to the data type represented by default, according to the conversion codes in format string, and returns the converted number in value and the remainder of string after the match in output string. |