Skip to content
Permalink
Browse files

Compat annotation for #29157 (precision as a kwarg to BigFloat).

  • Loading branch information...
fredrikekre committed Nov 30, 2018
1 parent 1774e96 commit 8abf28222ed2e0f9b805c3dda0dfb082115043e0
Showing with 5 additions and 0 deletions.
  1. +5 −0 base/mpfr.jl
@@ -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

0 comments on commit 8abf282

Please sign in to comment.
You can’t perform that action at this time.