I must be more stupid than I give myself credit.
This doesn't work and yet I have done what you explained.
[{"id":"c12e7a9dc72ee1a0","type":"template","z":"d188b95f33e5f7e4","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload | number: 1.2-2}}","output":"str","x":3530,"y":1490,"wires":[["6a3fdd888a5b6a85"]]},{"id":"5ce03491fb614cba","type":"inject","z":"d188b95f33e5f7e4","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"2.363636","payloadType":"num","x":3370,"y":1490,"wires":[["c12e7a9dc72ee1a0"]]},{"id":"6a3fdd888a5b6a85","type":"debug","z":"d188b95f33e5f7e4","name":"debug 266","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":3700,"y":1490,"wires":[]}]
All I get in the debug
is ""
P.S.
I moved the :
from just after number
and it made no difference. Still no output.
P.P.S.
I've worked out that is for use in something like a text
node.
I am sending my message through a template
node to construct the message from other parts (as well as the payload).