# Using Format.sprintf

**URL:** https://discuss.ocaml.org/t/using-format-sprintf/17402
**Category:** Learning
**Tags:** format, pretty-printing
**Created:** [October 18, 2025, 11:28am UTC](https://discuss.ocaml.org/t/using-format-sprintf/17402 "2025-10-18T11:28:31Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![JohnJ](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/johnj/32/6020_2.png) [@JohnJ](https://discuss.ocaml.org/u/JohnJ)
#### Post date: [October 19, 2025, 12:11pm UTC](https://discuss.ocaml.org/t/using-format-sprintf/17402/7 "2025-10-19T12:11:34Z")

</div>

For the sake of completeness, it is also possible to get ahold of the formatter used by asprintf: [https://discuss.ocaml.org/t/disabling-format-wrapping/15180/3?u=johnj](https://discuss.ocaml.org/t/disabling-format-wrapping/15180/3)

---

_[View the full topic](https://discuss.ocaml.org/t/using-format-sprintf/17402)._
