Skip to content

Commit

Permalink
Compat annotation for #29157 (precision as a kwarg to BigFloat).
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed Nov 30, 2018
1 parent 1774e96 commit 8abf282
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions base/mpfr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ global precision; `convert` will always return `x`.
convenience since decimal literals are converted to `Float64` when parsed, so
`BigFloat(2.1)` may not yield what you expect.
!!! compat "Julia 1.1"
`precision` as a keyword argument requires at least Julia 1.1.
In Julia 1.0 `precision` is the second positional argument (`BigFloat(x, precision)`).
# Examples
```jldoctest
julia> BigFloat(2.1) # 2.1 here is a Float64
2.100000000000000088817841970012523233890533447265625
Expand Down

0 comments on commit 8abf282

Please sign in to comment.