You might run into some edge cases trying to parse the string yourself, so I'd advise actually using Javascript or JSONata to do the test. These flows are examples.
[{"id":"136fdf3.4a09421","type":"inject","z":"5e0bf7b3.fc34d","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"str","x":150,"y":80,"wires":[["83f96ee6.f56a98"]]},{"id":"932a054.d90cb78","type":"inject","z":"5e0bf7b3.fc34d","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"a","payloadType":"str","x":150,"y":120,"wires":[["83f96ee6.f56a98"]]},{"id":"1fe64078.48d6","type":"inject","z":"5e0bf7b3.fc34d","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0.10","payloadType":"str","x":150,"y":160,"wires":[["83f96ee6.f56a98"]]},{"id":"83f96ee6.f56a98","type":"link out","z":"5e0bf7b3.fc34d","name":"","links":["cb123243.5647c","394d8256.6de2fe"],"x":275,"y":120,"wires":[]},{"id":"cb123243.5647c","type":"link in","z":"5e0bf7b3.fc34d","name":"","links":["83f96ee6.f56a98"],"x":355,"y":80,"wires":[["b426a0ce.541b8"]]},{"id":"b426a0ce.541b8","type":"change","z":"5e0bf7b3.fc34d","name":"check","rules":[{"t":"set","p":"payload","pt":"msg","to":"$number(payload)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":450,"y":80,"wires":[["53a7db7a.7cbda4"]]},{"id":"53a7db7a.7cbda4","type":"debug","z":"5e0bf7b3.fc34d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":610,"y":80,"wires":[]},{"id":"61651499.efacf4","type":"catch","z":"5e0bf7b3.fc34d","name":"","scope":["b426a0ce.541b8"],"uncaught":false,"x":450,"y":120,"wires":[["b89cbecb.b9b3e8"]]},{"id":"ba32a239.3f7fd","type":"function","z":"5e0bf7b3.fc34d","name":"","func":"msg.payload = + msg.payload\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":460,"y":160,"wires":[["a9eb457f.bd7648"]]},{"id":"394d8256.6de2fe","type":"link in","z":"5e0bf7b3.fc34d","name":"","links":["83f96ee6.f56a98"],"x":355,"y":160,"wires":[["ba32a239.3f7fd"]]},{"id":"a9eb457f.bd7648","type":"debug","z":"5e0bf7b3.fc34d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":610,"y":160,"wires":[]},{"id":"b89cbecb.b9b3e8","type":"debug","z":"5e0bf7b3.fc34d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"error.message","targetType":"msg","statusVal":"","statusType":"auto","x":630,"y":120,"wires":[]}]
If you really need to avoid the function
node, then ignore the second flow.