Hi,<br><br>Looking for a friend of real->decimal-string (which does only partly what you want), I see that the nightly builds include a family of value formatters like ~a, ~v, etc.<br>You probably want ~r, for example:<br>
> (~r 42 #:min-width 5 #:pad-string "0")<br>"00042"<br><br>They have many options that should fit your needs.<br><br>Cheers,<br>Laurent<br><br><div class="gmail_quote">On Thu, Sep 27, 2012 at 4:11 PM, <span dir="ltr"><<a href="mailto:heraklea@gmx.de" target="_blank">heraklea@gmx.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello friends,<br>
<br>
I search the docu, but I cannot find how I can fill a number with leading zeros or trailing zeros.<br>
<br>
I am using number->string and would like fill the missing zeros.<br>
<br>
Yours,<br>
____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
</blockquote></div><br>