Updated to include "strtonum" implementation (public domain)