numberinput: remove trailing decimal separator if decimals === 0