# Printing exact decimal representations

**URL:** <https://discourse.julialang.org/t/printing-exact-decimal-representations/103365>\
**Category:** Numerics\
**Tags:** float, bigfloat\
**Created:** [August 29, 2023, 9:15pm UTC](https://discourse.julialang.org/t/printing-exact-decimal-representations/103365 "2023-08-29T21:15:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nsajko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nsajko/32/221187_2.png) [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Post date:** [August 30, 2023, 1:37am UTC](https://discourse.julialang.org/t/printing-exact-decimal-representations/103365/2 "2023-08-30T01:37:38Z")

</div>

> [@Calculation of remainder, floating point issues](https://discourse.julialang.org/t/calculation-of-remainder-floating-point-issues/103338/8):
>
> depends on the current precision setting

Not sure what you mean. Yes, the global setting may be used at construction time, but I don’t think it affects printing:

```julia-repl
julia> b = big(1.0)/3
0.3333333333333333333333333333333333333333333333333333333333333333333333333333348

julia> setprecision(BigFloat, 1)
1

julia> b
0.3333333333333333333333333333333333333333333333333333333333333333333333333333348

```

---

_[View the full topic](https://discourse.julialang.org/t/printing-exact-decimal-representations/103365)._
