Hi all,

I was just wondering if the following is expected behaviour:

julia> parse("true")
true

julia> typeof(parse("true"))
Bool

julia> parse(Bool, "true")
ERROR: InexactError()
 in convert at ./bool.jl:6
 in tryparse_internal at parse.jl:84
 in tryparse_internal at parse.jl:136
 in parse at parse.jl:146


It seems odd that the last line results in an error. Anyone know why?

Cheers,

Colin

Reply via email to