NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I convert a string to a number?

Solved!
Go to solution
How do I convert a numerical string to a number in TestStand?
0 Kudos
Message 1 of 5
(16,428 Views)
Solution
Accepted by Snood1

Use Val().

Example  Val(Locals.myString)

Message 2 of 5
(16,425 Views)
Thanks.  I must have missed that in the expression browser, but I see it now.
0 Kudos
Message 3 of 5
(16,421 Views)

how do i convert a string to a number which has decimal points val() converts only the real value

 

 

Thanks

BHarathi

 

0 Kudos
Message 4 of 5
(15,668 Views)

I've never seen that.  Val should work on decimal numbers.

 

Val.png

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 5 of 5
(15,659 Views)