Added implementation of digittoint because it is missing on my centos 6 root server