Format number in input box

P.S.
If you want it to be supported on old browser versions, use:

.split('.').join('')

instead of the .replaceAll() method.