LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert array of strings to array of numbers

Solved!
Go to solution

How do I convert an array of strings (that are numbers) to an array of numbers so I can find the maximum value? I've tried using the code below in the snippet but my numbers are coming out way too large.

Code.png

0 Kudos
Message 1 of 9
(6,384 Views)
Solution
Accepted by Eric1977

It is much easier than that.

 

Example.png

Tim
GHSP
Message 2 of 9
(6,382 Views)

Thanks, aeastet!

0 Kudos
Message 3 of 9
(6,379 Views)

You are welcome

Tim
GHSP
0 Kudos
Message 4 of 9
(6,370 Views)

What is the tool that you used to do that (the one icon that say 999).  This is just a picture, so I can't actually find what that is called or what pallet it is in.

0 Kudos
Message 5 of 9
(6,291 Views)

Decimal String to Number. Should be on the Programming - String - String/Number Conversion...at least thats where mine is. Smiley Wink

Message 6 of 9
(6,286 Views)

@Peter O'Connell wrote:

What is the tool that you used to do that (the one icon that say 999).  This is just a picture, so I can't actually find what that is called or what pallet it is in.


 

Decimal String To Number Function

 

(Note that if your values are not integers, you might want to use this instead)

Message 7 of 9
(6,279 Views)

@Eric1977 wrote:

Decimal String to Number. Should be on the Programming - String - String/Number Conversion...at least thats where mine is. Smiley Wink



BEWARE that unless these are interger strings, you want to use FRACT/EXP String to Number!!!

 

[Edit] Okay, so I'm a slow typer...  😉

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 8 of 9
(6,277 Views)

@Peter O'Connell wrote:

What is the tool that you used to do that (the one icon that say 999).  This is just a picture, so I can't actually find what that is called or what pallet it is in.


It's actually not "just a picture".  It is a snippet.  If you drage that image from Internet Explorer to your block diagram, it drops it as code.

Message 9 of 9
(6,259 Views)