Attached an order-of-magnitude with optional base argument. May be you want to replace the current version that I wrote about one or two years ago.
IIRC Matthew Flatt included it in the math. File order-of-magnitude.rkt includes a commented out test. Jos > -----Original Message----- > From: Ryan Culpepper [mailto:ry...@ccs.neu.edu] > Sent: miƩrcoles, 08 de mayo de 2013 18:58 > To: Jos Koot > Cc: users@racket-lang.org > Subject: Re: [racket] ~r: formatting 0.0 with 'exponential > and #:precision > > Thanks for the report! I've taken your suggestion for ~r's > order-of-magnitude estimate. (I didn't change the version in > racket/math, though, but it seems like a reasonable idea to me.) > > Ryan > > snip
order-of-magnitude.scrbl
Description: Binary data
order-of-magnitude.rkt
Description: Binary data
____________________ Racket Users list: http://lists.racket-lang.org/users