return the given number or a default value