While I don't think it will cause issues immediately, it's a little odd that `_digits` is set in the `init` function but is a module level variable.

We don't have multiple diameter calculators in use on the same page, so it shouldn't be an issue right now, but it may not be apparent that this could be a problem if we add that functionality in the future.
A comment at least would be nice.