(inp, unsigned=False)
return inp.to_integer(unsigned)
Check if variable is numeric, convert to Int.
Check if variable is numeric, convert to Int.
Check if variable is numeric convert to Int .
def to_integer(inp, unsigned=False):
    """Check if variable is numeric, convert to Int."""
    if isinstance(inp, strings.String):
        raise error.BASICError(error.TYPE_MISMATCH)
    return inp.to_integer(unsigned)
def to_integer ( inp , unsigned = False ) : if isinstance ( inp , strings . String ) : raise error . BASICError ( error . TYPE_MISMATCH ) return inp . to_integer ( unsigned )