from typing import Union


def get_number(number: Union[int, float], default: Union[int, float]):
    """ get default if the number is None or <0, else the number """
    if number is None or number < 0:
        return default
    return number