if last digit is less, then subtract it and add diff between current and last