LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Covert string in SI format to number

I have a number 200,000. I can format it to get a  string in SI notation. If I format it using %.2p , I get 200.00k.

 

My problem here is how do I convert 200.00k (String) to 200.00k (number)?

 

Also Labview is smart to convert 200.00k  into 200,000. But can I convert 200,000 into 200.00k retaining the data type?

 

I know sounds stupid. I am been struggling to do this.

0 Kudos
Message 1 of 4
(3,358 Views)
Message Edited by nevil on 08-21-2008 01:28 PM
0 Kudos
Message 2 of 4
(3,357 Views)

The display format of a number has no bearing on its value. You can change the display format to whatever you want. E.g.:

 

Message Edited by smercurio_fc on 08-21-2008 01:47 PM
Message 3 of 4
(3,348 Views)
Use the "Scan From String" function as you would the "Format to String". Those two functions are inverses of each other.
0 Kudos
Message 4 of 4
(3,346 Views)