(inp, err=error.TYPE_MISMATCH)
return inp
Check if variable is numeric.
Check if variable is numeric.
Check if variable is numeric .
def pass_number(inp, err=error.TYPE_MISMATCH):
    """Check if variable is numeric."""
    if not isinstance(inp, numbers.Number):
        check_value(inp)
        raise error.BASICError(err)
    return inp
def pass_number ( inp , err = error . TYPE_MISMATCH ) : if not isinstance ( inp , numbers . Number ) : check_value ( inp ) raise error . BASICError ( err ) return inp