Added some generic number functions to core::num