# Float set\_printoptions

**URL:** https://discourse.julialang.org/t/float-set-printoptions/23775
**Category:** General Usage
**Created:** [May 2, 2019, 1:07pm UTC](https://discourse.julialang.org/t/float-set-printoptions/23775 "2019-05-02T13:07:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mfleader](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mfleader/32/8246_2.png) [@mfleader](https://discourse.julialang.org/u/mfleader)
#### Post date: [May 2, 2019, 1:07pm UTC](https://discourse.julialang.org/t/float-set-printoptions/23775/1 "2019-05-02T13:07:05Z")

</div>

Using this function in IPynb is helpful for interactive coding with arrays of floats.

```python
numpy.set_printoptions(precision = 3)

```

I have been unable to figure out what the Julia or IJulia alternative is. My current fix is to broadcast round to every array at the end of a cell.

```julia
round.(a, digits = 3)

```

Is there a global option to round or truncate float output in IJulia?
