Check out issubtype:
http://docs.julialang.org/en/latest/stdlib/base/#Base.issubtype
And the corresponding operator (since it's use so much):

x = 1
x <: Real
true


On Sun, Mar 23, 2014 at 9:20 PM, cnbiz850 <[email protected]> wrote:

> typeof(var) gives something too specific, like Int16, Float32, etc. Is
> there a convenient way to determine if var is a number or something else
> (string)?  I tried isreal(var), but it gives an error in case var is not a
> number.
>
>

Reply via email to