From 8da60b26bb6b868c027084d156bd5f327d893ca7 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Fri, 30 Nov 2018 18:25:28 +0100 Subject: [PATCH] Compat annotation for #29157 (precision as a kwarg to BigFloat). --- base/mpfr.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/base/mpfr.jl b/base/mpfr.jl index c459f3738454f1..aaf3e9783bf62c 100644 --- a/base/mpfr.jl +++ b/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