Reset digit to 0 for inputs starting with "0x".