In JavaScript, I want to define where the decimal place goes. I can only really show it in example.
Lets say the input value is 1234.
I want the output to be 123.4.
Or, if the input is 12345, I want the output to be 123.45.
Or, if the input is 123456, I want the output to be 123.456. You get the picture.
To clarify, I just want three digits on the left side of the decimal. The total number of digits is unknown.
So, how could this be done?