Sorting a string

I´m getting this value:

0.20607
€/kWh

but i just want the numerical part.
0.20607 How can i get it ?

Can you add a debug node (set to display the complete msg object) to where ever you see that and show us what the complete object looks like.

It looks like it is a string on two lines, so you could do it with a function node and the javascript string split(). A quick google search will show you how to use it.

And please don't ask the same question in multiple threads. I'll close the other thread now.

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