# How to print a formatted number with colors?

**URL:** <https://discourse.julialang.org/t/how-to-print-a-formatted-number-with-colors/10710>\
**Category:** General Usage\
**Created:** [May 4, 2018, 4:53pm UTC](https://discourse.julialang.org/t/how-to-print-a-formatted-number-with-colors/10710 "2018-05-04T16:53:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RaulDurand](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rauldurand/32/2044_2.png) [@RaulDurand](https://discourse.julialang.org/u/RaulDurand)\
**Post date:** [May 4, 2018, 4:53pm UTC](https://discourse.julialang.org/t/how-to-print-a-formatted-number-with-colors/10710/1 "2018-05-04T16:53:25Z")

</div>

Is there a way to use @printf with colors or print\_with\_color with format?

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [May 4, 2018, 4:56pm UTC](https://discourse.julialang.org/t/how-to-print-a-formatted-number-with-colors/10710/2 "2018-05-04T16:56:49Z")

</div>

Pass the result of `@sprintf` to `print_with_color`?

---

<div class="post-metadata">

**Author:** ![RaulDurand](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rauldurand/32/2044_2.png) [@RaulDurand](https://discourse.julialang.org/u/RaulDurand)\
**Post date:** [May 4, 2018, 6:23pm UTC](https://discourse.julialang.org/t/how-to-print-a-formatted-number-with-colors/10710/3 "2018-05-04T18:23:19Z")

</div>

Indeed! Thank you!
