# How to display Float64 with more digits

**URL:** https://discourse.julialang.org/t/how-to-display-float64-with-more-digits/5628
**Category:** General Usage
**Tags:** repl
**Created:** [August 30, 2017, 9:03am UTC](https://discourse.julialang.org/t/how-to-display-float64-with-more-digits/5628 "2017-08-30T09:03:35Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [August 30, 2017, 12:16pm UTC](https://discourse.julialang.org/t/how-to-display-float64-with-more-digits/5628/3 "2017-08-30T12:16:10Z")

</div>

Rather than hacks, you can use:

```julia
julia> show(IOContext(STDOUT, :compact=>false), "text/plain", randn(2))
2-element Array{Float64,1}:
  1.3718634685435964 
 -0.13288472215889663

```

That is, you write to an `IOContext` stream with the `:compact` property set to `false`.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-display-float64-with-more-digits/5628)._
