toDigitsRev corrected for 0