Anzahl der Ziffern in Java
int numOfDigits = ((int) Math.floor(Math.log10(number))) + 1
Fair Finch
int numOfDigits = ((int) Math.floor(Math.log10(number))) + 1