What is the easiest way in python to count the number of digits after the decimal point for a value < 1 without using string-functions?
For example i have one of the following values: 0.0001 or 0.1001 or 0.1234.
The result in all cases should be 4.