We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66b04f3 commit cb6bd24Copy full SHA for cb6bd24
doc/src/manual/conversion-and-promotion.md
@@ -134,11 +134,6 @@ actual Julia behaviour. This is the actual implementation in Julia:
134
```julia
135
convert(::Type{T}, z::Complex) where {T<:Real} =
136
(imag(z) == 0 ? convert(T, real(z)) : throw(InexactError()))
137
-
138
-julia> convert(Bool, 1im)
139
-ERROR: InexactError()
140
- in convert(::Type{Bool}, ::Complex{Int64}) at ./complex.jl:18
141
- ...
142
```
143
144
### [Case Study: Rational Conversions](@id man-rational-conversion)
0 commit comments