# Extending a string by adding 0's to the end

**URL:** <https://discourse.julialang.org/t/extending-a-string-by-adding-0s-to-the-end/43813>\
**Category:** New to Julia\
**Created:** [July 28, 2020, 12:28pm UTC](https://discourse.julialang.org/t/extending-a-string-by-adding-0s-to-the-end/43813 "2020-07-28T12:28:36Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Iulian.Cioarca](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iulian.cioarca/32/30166_2.png) [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Post date:** [July 28, 2020, 12:54pm UTC](https://discourse.julialang.org/t/extending-a-string-by-adding-0s-to-the-end/43813/3 "2020-07-28T12:54:58Z")

</div>

I had a similar problem in: [Generate equal length strings from numbers by padding with "0"? - #2 by fredrikekre](https://discourse.julialang.org/t/generate-equal-length-strings-from-numbers-by-padding-with-0/41365/2), except I needed padding on the left. There is also an `rpad` function available. I hope it helps.

---

_[View the full topic](https://discourse.julialang.org/t/extending-a-string-by-adding-0s-to-the-end/43813)._
