This version is old school.
Please find jQuery plugins on npm.
Automatically add decimal to an INPUT field
jQuery plugin to automatically add a decimal to an INPUT field. Configured by adding an attribute `decimaldigits='[number of digits to place after decimal]'` For example, you could type a weight in as 1853 to get 185.3