Remove unnecessary recalculation of total number of digits.