Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
1 ratings:
 4 out of 5   

Converting a Floating Point Number to a String in SI Notation

Primary Software:
Primary Software Version: 7.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

How can I convert a floating point number to a string that represents the number in SI notation?

You should use the Programming»String»Format into String VI.  With the proper input to the format string you can represent your number in several different ways.  For SI notation the proper format string is %^.0p, for scientific notation the format string would be %^.0g, as shown below with an example input of 20,000.

For more format options look at Format Specifier Syntax in LabVIEW Help.

Related Links:
LabVIEW 8.6 Help: Format Specifier Syntax
KnowledgeBase 22J9CP0W: How Do I Convert a String with a Floating Point Number That Uses a Comma for the Decimal Point into a Numeric Data Type in LabVIEW


Report Date: 01/27/2005
Last Updated: 10/19/2010
Document ID: 3HQGBB4H

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit