[racket-dev] Documentation bug - 12.6.3: Reading numbrs

From: The Configurator (configurator at gmail.com)
Date: Mon Jul 26 20:57:36 EDT 2010

At the end of part 12.6.3 of the docs in
http://docs.racket-lang.org/reference/reader.html, it gives some examples

Examples:

 -1

 reads equal to

-1

 1/2

 reads equal to

(/ 1 2)

 1.0

 reads equal to

(inexact->exact 1)

 1+2i

 reads equal to

(make-complex 1 2)

 1/2+3/4i

 reads equal to

(make-complex (/ 1 2) (/ 3 4))

 1.0+3.0e7i

 reads equal to

(inexact->exact (make-complex 1 30000000))

 2e5

 reads equal to

(inexact->exact 200000)

 #i5

 reads equal to

(inexact->exact 5)

 #e2e5

 reads equal to

200000

 #x2e5

 reads equal to

741

 #b101

 reads equal to

5

Shouldn't all the usages of inexact->exact here actually be exact->inexact ?

(I think this is the right place to ask this sort of question - if I'm
wrong, please steer me in the right direction ;)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/dev/archive/attachments/20100727/52ea7a76/attachment.html>

Posted on the dev mailing list.