Add decimal separator to MQTT number

I got a MQTT topic which has a number without decimal sign.
Last 3 digits
So I have 1073568 but it should be 1073.568
Can this be done with javascript transform Regex? sorry I’m new to this

What does the number represent, in terms of units? For example, is it Watts, and you want kW?

Nevermind - found a solution


Don’t be DenverCoder9, please post your solution so future readers might benefit. There are lots of ways this can be done.