[{"id":"64bb60d.c3f85a","type":"inject","z":"20b7876.4745d78","name":"Inject value as a string","topic":"","payload":"25.2","payloadType":"str","repeat":"","crontab":"","once":false,"x":220.5,"y":221.3333511352539,"wires":[["a86fe4cf.3cfb78","847f4b7d.ed1f78"]]},{"id":"a86fe4cf.3cfb78","type":"function","z":"20b7876.4745d78","name":"custom function","func":"// declare place holder variables\nvar originalval = msg.payload;\nvar temp = \"\";\n\n\n// convert string of originalval to float with 1 decimal place\n// run originalval thru a simple minus operation to form the 'temp' number\ntemp = parseFloat(originalval).toFixed(1) - 1;\n\n// output the originalval after deduction \nmsg.payload = temp;\n\n\nreturn msg;","outputs":1,"noerr":0,"x":434.5000305175781,"y":221.6666488647461,"wires":[["ed4b60d1.09bc7"]]},{"id":"ed4b60d1.09bc7","type":"debug","z":"20b7876.4745d78","name":"after function debugger","active":true,"console":"false","complete":"payload","x":658.4999694824219,"y":222.66663360595703,"wires":[]},{"id":"847f4b7d.ed1f78","type":"debug","z":"20b7876.4745d78","name":"before function debugger","active":true,"console":"false","complete":"payload","x":464.5000305175781,"y":284.6666488647461,"wires":[]}]