I have a number, and need to add a decimal to it for formatting.
The number is guaranteed to be between 999999 and 1000 (I have covered the other possibilities in other ways, this is the one I can't get my head around). I need to put a decimal before the last 3 digits, such as:
999.999 or 1.000 or 23.513
What kind of regex will accomplish this?