# How do I restrict the number of digits in the REPL display?

**URL:** <https://discourse.julialang.org/t/how-do-i-restrict-the-number-of-digits-in-the-repl-display/107501>\
**Category:** New to Julia\
**Tags:** repl, io, rounding\
**Created:** [December 12, 2023, 2:37pm UTC](https://discourse.julialang.org/t/how-do-i-restrict-the-number-of-digits-in-the-repl-display/107501 "2023-12-12T14:37:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [December 12, 2023, 4:00pm UTC](https://discourse.julialang.org/t/how-do-i-restrict-the-number-of-digits-in-the-repl-display/107501/2 "2023-12-12T16:00:00Z")

</div>

Check [this post](https://discourse.julialang.org/t/how-to-print-a-number-to-x-digits/50526/3) for a Matlab-like solution.

---

_[View the full topic](https://discourse.julialang.org/t/how-do-i-restrict-the-number-of-digits-in-the-repl-display/107501)._
