Adding unit test for #39410. Implementing fix by switching from using Math.log to Integer.toString to figure out the number of digits. 

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@398530 13f79535-47bb-0310-9956-ffa450edef68
2 files changed