﻿

# String/Number Conversion Functions

LabVIEW 2011 Help

Edition Date: June 2011

Part Number: 371361H-01

»View Product Info

Requires: Base Package. 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 ObjectDescription
Decimal String To NumberConverts the numeric characters in string, starting at offset, to a decimal integer and returns it in number.
Format ValueConverts a number into a regular string according to the format specified in format string and appends this to string.
Fract/Exp String To NumberInterprets 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 NumberInterprets 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 StringConverts 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 StringConverts number to an engineering format, floating-point string at least width characters wide or wider if necessary.
Number To Exponential StringConverts number to an E-format (exponential notation), floating-point string at least width characters wide or wider if necessary.
Number To Fractional StringConverts number to an F-format (fractional notation), floating-point string at least width characters wide or wider if necessary.
Number To Hexadecimal StringConverts 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 StringConverts 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 NumberInterprets 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 ValueConverts 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.

Your Feedback!  Poor  |  Excellent    Yes No
 Document Quality?