ndigits: don't take abs(n) if b < 0.