add digits! function
Merge pull request #7952 from gajjanag/master

add digits! function