# How to display Float64 with many digits in Julia 0.7

**URL:** <https://discourse.julialang.org/t/how-to-display-float64-with-many-digits-in-julia-0-7/12034>\
**Category:** General Usage\
**Created:** [June 28, 2018, 1:53pm UTC](https://discourse.julialang.org/t/how-to-display-float64-with-many-digits-in-julia-0-7/12034 "2018-06-28T13:53:10Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![lbenet](https://avatars.discourse-cdn.com/v4/letter/l/35a633/32.png) [@lbenet](https://discourse.julialang.org/u/lbenet)\
**Post date:** [June 28, 2018, 6:03pm UTC](https://discourse.julialang.org/t/how-to-display-float64-with-many-digits-in-julia-0-7/12034/6 "2018-06-28T18:03:25Z")

</div>

Thanks @rfourquet for taking a look on this.

I am not sure, but as far as I can trace this down (for the example above), I think the problem is related to [this method](https://github.com/JuliaLang/julia/blob/7ebcbc03ac87e5d7d040861b0f5476b02c70148a/base/arrayshow.jl#L416) of `show`. There, `:compact => true` is set, perhaps overwriting what may be defined by the context of `io`. Is this correct?

As a side remark, the hack proposed [here](https://discourse.julialang.org/t/how-to-display-float64-with-more-digits/5628/2) actually works:

```julia
julia> Base.show(io::IO, x::Union{Float64,Float32}) = Base.Grisu._show(io, x, Base.Grisu.SHORTEST, 0, true, false)

julia> a = MyType{Float64}(randn(5))
MyType{Float64}([-1.449833577704765, -0.10839395960990496, 3.141203529351768, 0.7843448324558726, -1.3296269838447883])

```

---

_[View the full topic](https://discourse.julialang.org/t/how-to-display-float64-with-many-digits-in-julia-0-7/12034)._
