def assert_number_of_revolutions_not_negative(M):
    """
    Checks if the number of revolutions is zero or positive, that is, it does
    not have a negative value.

    Parameters
    ----------
    M: int
        Number of revolutions

    """

    if M < 0:
        raise ValueError("Number of revolutions must be equal or greater than zero!")
    else:
        return True