Skip to content

Commit d40e71a

Browse files
giordanosimonbyrne
authored andcommitted
[MPFR] Fix printing of BigFloat (#49909)
Co-authored-by: Simon Byrne <simon.byrne@gmail.com>
1 parent 83263ee commit d40e71a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/mpfr.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ function _string(x::BigFloat, fmt::String)::String
10281028
isfinite(x) || return string(Float64(x))
10291029
_prettify_bigfloat(string_mpfr(x, fmt))
10301030
end
1031-
_string(x::BigFloat) = _string(x, "%.Re")
1031+
_string(x::BigFloat) = _string(x, "%Re")
10321032
_string(x::BigFloat, k::Integer) = _string(x, "%.$(k)Re")
10331033

10341034
string(b::BigFloat) = _string(b)

0 commit comments

Comments
 (0)