Change digits so that it works with self == 0