[Haskell-cafe] 80 bit floating point data in Haskell?

Andrew Coppin andrewcoppin at btinternet.com
Mon Sep 28 06:52:00 EDT 2009

wren ng thornton wrote:
> Andrew Coppin wrote:
>> While we're on the subject... I understand that certain FPUs support 
>> 80-bit precision. Is there any way to get at that? Or is this going 
>> to require FFI too?
> Perhaps you want Foreign.C.Types.CLDouble ?
> http://hackage.haskell.org/packages/archive/base/latest/doc/html/Foreign-C-Types.html#t%3ACLDouble 
> http://en.wikipedia.org/wiki/Long_double
> (Or do you really want to ensure that it's 80-bits regardless of 
> platform and the whims of the C compiler?)

Yep, that'll do. :-)

More information about the Haskell-Cafe mailing list