# Can I define string as "%Fmt" in Printf?

**URL:** https://discourse.julialang.org/t/can-i-define-string-as-fmt-in-printf/66766
**Category:** General Usage
**Tags:** io
**Created:** [August 21, 2021, 7:17am UTC](https://discourse.julialang.org/t/can-i-define-string-as-fmt-in-printf/66766 "2021-08-21T07:17:04Z")
**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: [August 21, 2021, 7:38am UTC](https://discourse.julialang.org/t/can-i-define-string-as-fmt-in-printf/66766/2 "2021-08-21T07:38:37Z")

</div>

It seems to be the same problem with the same solution as in the other post:

```julia
s = Printf.Format("%f %F %f %F");
Printf.format(s, Inf, Inf, NaN, NaN)

```

---

_[View the full topic](https://discourse.julialang.org/t/can-i-define-string-as-fmt-in-printf/66766)._
