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 1774e96 commit 8abf282Copy full SHA for 8abf282
base/mpfr.jl
@@ -151,6 +151,11 @@ global precision; `convert` will always return `x`.
151
convenience since decimal literals are converted to `Float64` when parsed, so
152
`BigFloat(2.1)` may not yield what you expect.
153
154
+!!! compat "Julia 1.1"
155
+ `precision` as a keyword argument requires at least Julia 1.1.
156
+ In Julia 1.0 `precision` is the second positional argument (`BigFloat(x, precision)`).
157
+
158
+# Examples
159
```jldoctest
160
julia> BigFloat(2.1) # 2.1 here is a Float64
161
2.100000000000000088817841970012523233890533447265625
0 commit comments