[racket-dev] Subnormal numbers?

2011-11-29 Thread J. Ian Johnson
I'm currently proctoring the freshmen's lab on inexact numbers and was curious how to denote subnormal numbers in Racket. Turns out that's not possible, since there is no underflow. Why does Racket follow the old standard of representing underflow with inexact zero? I imagine changing it now

Re: [racket-dev] Subnormal numbers?

2011-11-29 Thread Neil Toronto
I can't answer the question about underflow. But if you don't mind installing a nightly build of Racket, you get the (currently undocumented) module `unstable/flonum', which exports these: flonum-bit-field bit-field-flonum flonum-ordinal; number of flonums away from 0 (+ or -)