[racket-dev] What are single flonums good for?

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Wed Sep 12 16:56:12 EDT 2012

On Wed, Sep 12, 2012 at 3:47 PM, Matthew Flatt <mflatt at cs.utah.edu> wrote:
> At Wed, 12 Sep 2012 08:31:29 -0600, Neil Toronto wrote:
>> Why do we have these things?
>
> I'm not sure this reason from 1996 is still relevant, but FWIW:
> Originally, there were drawing-related `float' computations in C code
> that I wanted to replicate exactly in Racket (ok, MzScheme).
> Eventually, I solved my specific consistency problem by changing the C
> code to use `double's; in other cases, someone might not be free to
> change the calculation.

Would today's FFI make it easy (enough) to do those precise
calculations? (Or maybe if we added a little library to help?)

Robby

Posted on the dev mailing list.