# Disable rounding when displaying Dataframe values

**URL:** <https://discourse.julialang.org/t/disable-rounding-when-displaying-dataframe-values/123541>\
**Category:** General Usage\
**Created:** [December 6, 2024, 2:39pm UTC](https://discourse.julialang.org/t/disable-rounding-when-displaying-dataframe-values/123541 "2024-12-06T14:39:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ju\_ska](https://avatars.discourse-cdn.com/v4/letter/j/ecd19e/32.png) [@Ju\_ska](https://discourse.julialang.org/u/Ju_ska)\
**Post date:** [December 6, 2024, 2:39pm UTC](https://discourse.julialang.org/t/disable-rounding-when-displaying-dataframe-values/123541/1 "2024-12-06T14:39:19Z")

</div>

Hi,

is it possible to disable rounding when displaying Dataframe values ?  
For instance, I spent a few minutes trying to figure out why I got the year 2001.0 (Float) in my dataframe where I should have read 2000.9999.

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [December 6, 2024, 3:07pm UTC](https://discourse.julialang.org/t/disable-rounding-when-displaying-dataframe-values/123541/2 "2024-12-06T15:07:58Z")

</div>

I don’t think there is a way to do this by default. But you can use `show` to print with more digits

```julia
julia> df = DataFrame(x = rand(5) .* 1e-5 .+ 2000.9999)
5×1 DataFrame
 Row │ x       
     │ Float64 
─────┼─────────
   1 │ 2001.0
   2 │ 2001.0
   3 │ 2001.0
   4 │ 2001.0
   5 │ 2001.0

julia> show(df; formatters = PrettyTables.ft_printf("%0.10f"))
5×1 DataFrame
 Row │ x               
     │ Float64         
─────┼─────────────────
   1 │ 2000.9999090513
   2 │ 2000.9999050430
   3 │ 2000.9999021228
   4 │ 2000.9999093119
   5 │ 2000.9999020573

```
