[racket] Formating Printing of Real Number

From: Vincent St-Amour (stamourv at ccs.neu.edu)
Date: Fri Jul 27 15:19:49 EDT 2012

Does `real->decimal-string' do what you want?

Vincent


At Fri, 27 Jul 2012 14:27:17 -0400,
Ray Racine wrote:
> 
> [1  <multipart/alternative (7bit)>]
> [1.1  <text/plain; ISO-8859-1 (7bit)>]
> Unable to locate a means to control the output formatting of
> Real/Floats/what-have-you either via current formatting facilities (format
> procedure etc) or via some parameter.  Is there anything available?
> 
> ;; stipulate in some manner
> > (asin 1.0+5.0i)
> 0.1938+2.3310i
> 
> vs.
> 
> > (asin 1.0+5.0i)
> 0.1937931365549321+2.3309746530493123i
> [1.2  <text/html; ISO-8859-1 (quoted-printable)>]
> 
> [2  <text/plain; us-ascii (7bit)>]
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users

Posted on the users mailing list.