(num)
return num.to_double()
Check if variable is numeric, convert to Double.
Check if variable is numeric, convert to Double.
Check if variable is numeric convert to Double .
def to_double(num):
    """Check if variable is numeric, convert to Double."""
    if isinstance(num, strings.String):
        raise error.BASICError(error.TYPE_MISMATCH)
    return num.to_double()
def to_double ( num ) : if isinstance ( num , strings . String ) : raise error . BASICError ( error . TYPE_MISMATCH ) return num . to_double ( )