How to display Float64 with more digits

A similar solution was posted by @Seif_Shebl here.

To further increase the number of printed digits, say to 100, one can use BigFloats:

using Printf
Base.show(io::IO, f::BigFloat) = @printf(io, "%.100f", f)

julia> BigFloat(pi)
3.1415926535897932384626433832795028841971693993751058209749445923078164062861980294536250318213496467
2 Likes