Hi,

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.
You probably want ~r, for example:
> (~r 42 #:min-width 5 #:pad-string "0")
"00042"

They have many options that should fit your needs.

Cheers,
Laurent

On Thu, Sep 27, 2012 at 4:11 PM, <[email protected]> wrote:

> Hello friends,
>
> I search the docu, but I cannot find how I can fill a number with leading
> zeros or trailing zeros.
>
> I am using number->string and would like fill the missing zeros.
>
> Yours,
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users
>
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to