Function-Node mit
$message['payload'] = (float)$message['payload'];
return $message;
[{"id":"b0f306dd.157958","type":"constant","namespace":"variable","z":"a8b26615.612f28","name":"","payload":"5.5","payloadType":"string","outputonstartup":false,"x":170,"y":1480,"wires":[[{"id":"9236fda2.940028","port":0}]]},{"id":"3645e99e.ff1c1e","type":"debug","namespace":"debug","z":"a8b26615.612f28","name":"","active":true,"console":"debtab","complete":"false","loglevel":"info","x":465,"y":1480,"wires":[]},{"id":"9236fda2.940028","type":"function","namespace":"function","z":"a8b26615.612f28","name":"float","func":"$message['payload'] = (float)$message['payload'];\nreturn $message;","inputs":1,"outputs":1,"noerr":0,"x":300,"y":1480,"wires":[[{"id":"3645e99e.ff1c1e","port":0}]]}]
Wichtig, es darf im String natürlich nur die Zahl sein, auch nur mit .
, nicht mit ,
als Hundertertrennzeichen wie im deutschen üblich.