Utility functions involving numbers