Blockly help required for parseint

Hi guys,
Struggling to write this in blockly .what am i missing?

let tempstring = msg.setpoint;
newtemp = parseInt(tempstring);
msg.payload = newtemp

thanks for any help

image

1 Like

omg cant explain how good you people are on here! so quick!

thank you @cymplecy

1 Like

Just in case you don't want an integer but just to convert from string to number

image

no its the integer i need , just did not see round function was looking for parseint.

thank you again

1 Like

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