def getFloat(parent, number):
    """
    Check whether the input number is a float. Either return the number or
    return False.
    """
    try:
        return float(number)
    except ValueError:
        parent.statusbar.SetStatusText("Unrecognized number: %s" % number)
        return False