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 da8c7d7 commit 8da60b26bb6b868c027084d156bd5f327d893ca7
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 8da60b2

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