# 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:** 13

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [May 27, 2021, 9:47am UTC](https://discourse.julialang.org/t/how-to-display-float64-with-more-digits/5628/13 "2021-05-27T09:47:38Z")

</div>

A similar solution was posted by @Seif_Shebl[here](https://discourse.julialang.org/t/how-to-print-a-number-to-x-digits/50526/2).

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

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

julia> BigFloat(pi)
3.1415926535897932384626433832795028841971693993751058209749445923078164062861980294536250318213496467

```

---

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