def compare(numA, numB):
    """
    compare(numA, numB):

    Compares two numbers. Returns:
        1,  if the first number is greater than the second,
        0,  if they are equal,
       -1, if the first number is smaller than the second.

    Parameters
    ----------
    numA: integer or float
    numB: integer of float

    Returns
    -------
    integer

    """
    if numA > numB:
        return 1
    if numA < numB:
        return -1
    if numA == numB:
        return 0