Here is my setup.
[{"id":"a3a21d2e40b021ad","type":"tab","label":"Temp Data","disabled":false,"info":"","env":[]},{"id":"c3a1f05e884b85c0","type":"function","z":"a3a21d2e40b021ad","name":"MPH > MPS","func":"msg.payload = msg.payload / 2.237\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":350,"y":100,"wires":[["4c3a5cc7f43e0519","1657d66d3ffd95d0"]]},{"id":"27970f52a4908ad1","type":"function","z":"a3a21d2e40b021ad","name":"Remove Decimal","func":"msg.payload = parseInt(msg.payload.toString().replace(\".\",\"\"))\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":200,"wires":[["4c3a5cc7f43e0519"]]},{"id":"4c3a5cc7f43e0519","type":"debug","z":"a3a21d2e40b021ad","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":570,"y":100,"wires":[]},{"id":"0eaf5607dfe56699","type":"inject","z":"a3a21d2e40b021ad","name":"Injects 1.2 MPH","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1.2","payloadType":"num","x":120,"y":80,"wires":[["c3a1f05e884b85c0"]]},{"id":"1657d66d3ffd95d0","type":"change","z":"a3a21d2e40b021ad","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$round(payload, 2)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":220,"y":200,"wires":[["27970f52a4908ad1"]]}]
If i inject 1.2 miles per hour, with my current setup, i get 54 metres per second, which is incorrect, it should be 0.53, which means for my application i need to send a value of 053.
I am sending data to an external weather server, which requires data in MPS and my wind sensor is outputting miles per hour.