commenting out _math.n_digits function