If n ∈ ℕ (n ≠ 0) and b is the number base (b>1) then the number of digits, d, of n is d = ⌊logb(n)⌋ + 1