Haskell - Java and floats

2001-09-30 Thread pachinko
Has anyone ever tried to pass/receive a float to/from a Java app? If so, how did you manage it? I need an algorithm for converting an IEEE 754 format float to a 32 bit integer? I want something that can convert a haskell float into a int that can be stored to disk for later input to a Java

Re: Haskell - Java and floats

2001-09-30 Thread Ashley Yakeley
At 2001-09-30 00:37, [EMAIL PROTECTED] 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