String to number

The Node-RED Function node uses JavaScript. A quick google search for how to do that will reveal lots of answers, for example:

Nick