NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert string with float number to a number

Solved!
Go to solution

How to convert string like "-8.9E-03" to a number in TestStand?

 

Thanks in advance

0 Kudos
Message 1 of 2
(7,326 Views)
Solution
Accepted by Berezka

 

Hi,

 

Try to use the function Val()

In expression it looks like this

 

Locals

.nValue = Val(Locals.strValue

 

Locals.nValue = Val("-8.9E-03")

 

Hope this helps

 

Juergen

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 2 of 2
(7,322 Views)