Re: [racket-users] Formatting Function

2015-10-12 Thread Deren Dohoda
Hi Taro, Probably racket/format is what you need to look at. http://docs.racket-lang.org/reference/strings.html#%28mod-path._racket%2Fformat%29 #lang racket/base (require racket/format) (define (this-format num) (~a #:min-width 3 #:align 'right #:pad-string "0" num)) (this-format 5) ;=> "

[racket-users] Formatting Function

2015-10-12 Thread Taro Annual
Hi, Please tell me the way of the following in racket? In C, printf("%02d", 2); In Common Lisp, (format t "~2,'0D" 2) -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an em