Skip to content

Commit 8abf282

Browse files
committed
Compat annotation for #29157 (precision as a kwarg to BigFloat).
1 parent 1774e96 commit 8abf282

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

base/mpfr.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ global precision; `convert` will always return `x`.
151151
convenience since decimal literals are converted to `Float64` when parsed, so
152152
`BigFloat(2.1)` may not yield what you expect.
153153
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
154159
```jldoctest
155160
julia> BigFloat(2.1) # 2.1 here is a Float64
156161
2.100000000000000088817841970012523233890533447265625

0 commit comments

Comments
 (0)