Fixes decimal places for unit input.