Haskell <-> Java and floats

Ashley Yakeley ashley@semantic.org
Sun, 30 Sep 2001 15:17:12 -0700


At 2001-09-30 00:37, pachinko@magicaldesk.com wrote:

>Has anyone ever tried to pass/receive a float to/from a Java app? If so, 
>how did you manage it?

Using JNI through Haskell's FFI. Both define their floats and doubles as 
C 'float' and 'double', so I don't bother with any conversion. I haven't 
tested it yet, though.

-- 
Ashley Yakeley, Seattle WA