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

Machine bit representations

2001-07-24 Thread pachinko
Hello, Is it possible in Haskell to access the underlying machine bit representation of a Float or Double value? I need to be able to be able to send this bit representation as a list of bytes in network byte order to a process running on a different platform (with a different host byte