From 8abf28222ed2e0f9b805c3dda0dfb082115043e0 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 847ae067694f04..60dcf05b8b9c8a 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