[racket] Is there anything like the cl format?

From: Chongkai Zhu (czhu at cs.utah.edu)
Date: Fri Dec 17 12:46:16 EST 2010

There's SRFI 48 and SRFI 54, both supported in Racket:

#lang racket
(require srfi/48)
(format "~6,5F" pi)

=>

"3.14159"

-
Chongkai

On 12/17/2010 12:58 AM, Manfred Lotz wrote:
> Hi there,
> Common Lisp has format to print stuff like for example:
>
>> (format t "~,5f" pi)
> 3.14159
>
>
> I found format and printf but they seem to be a bit poor in term of
> printing capabilities.
>
> Is there anything similar to CL's format in Racket?
>
>
>
>



Posted on the users mailing list.