I would like to find the number of significant digits in a vector of numbers that can have very different scales.
For example, the number 1000 has 1 digit; the number 100 also has 1. The number 1300 has 2.
This is not to be confused with the number of digits after decimal, that in both cases is equal to 0.