def is_number(text):
    """
    This function checks if a string is a number,
    positive or negative value.

    :type   text: string
    :param  text: string to be tested

    :rtype: boolean
    :return: True if is a number, else False
    """
    try:
        float(text)
        return True
    except ValueError:
        return False