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 110068f commit d89adddCopy full SHA for d89addd
base/essentials.jl
@@ -181,7 +181,7 @@ Stacktrace:
181
[...]
182
```
183
184
-If `T` is a [`AbstractFloat`](@ref) or [`Rational`](@ref) type,
+If `T` is a [`AbstractFloat`](@ref) type,
185
then it will return the closest value to `x` representable by `T`.
186
187
```jldoctest
@@ -191,11 +191,8 @@ julia> x = 1/3
191
julia> convert(Float32, x)
192
0.33333334f0
193
194
-julia> convert(Rational{Int32}, x)
195
-1//3
196
-
197
-julia> convert(Rational{Int64}, x)
198
-6004799503160661//18014398509481984
+julia> convert(BigFloat, x)
+0.333333333333333314829616256247390992939472198486328125
199
200
201
If `T` is a collection type and `x` a collection, the result of
0 commit comments