Number utility functions. Inspired by the ruby Integer object.