Read a number in an array

Hey!
I want to use the number in the array extracted from an csv file for a calculation. I convereted the object to an array but the number is in between " ", which doesnt allow me to read roperly
image
How can I get rid of the " " so it will like this
image
(Note. the second picture got a different value. added just to show how I need it)

Thanks heaps

You can convert it in a function node using
msg.payload = Number(msg.payload).

How did you convert it to an array, it may be possible to do the conversion at the same time.

Or if you used the csv node, set it to parse numeric values.

[edit]
I see i responded in another thread. If you had responded there I would of said
use
$split($$.payload.col1, ",").$number($)

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.