First off... this is highly unsupported. You should not be doing this. Stop, go back. Don't do this.
(sigh)
But sometimes clients ask me to update the decimal places on an item that they've had in production for some time.
The code below works for making a decimal place longer. BUT NOT SMALLER. You'd have to add code to round all the decimal places if you're going smaller.