From 11:00 PM CDT Friday, May 10 – 02:30 PM CDT Saturday, May 11 (04:00 AM UTC – 07:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,350 Views)
Solution
Accepted by topic author 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,346 Views)