# How to repeat the format in @printf?

**URL:** https://discourse.julialang.org/t/how-to-repeat-the-format-in-printf/66695
**Category:** General Usage
**Tags:** io
**Created:** [August 19, 2021, 11:48pm UTC](https://discourse.julialang.org/t/how-to-repeat-the-format-in-printf/66695 "2021-08-19T23:48:58Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![heliosdrm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heliosdrm/32/3851_2.png) [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)
#### Post date: [August 20, 2021, 8:18am UTC](https://discourse.julialang.org/t/how-to-repeat-the-format-in-printf/66695/6 "2021-08-20T08:18:52Z")

</div>

The disadvantage of using `@eval` is that it evaluates the expression in the global scope, so it’s not great for using in functions etc.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-repeat-the-format-in-printf/66695)._
