Q:

Converting a float to the integer with the same bit representation as it, in java?

I think this is not hard in C with pointers. However, how would one do this in java? EG a float is represented as 101001, and you want the integer represented by 101001 (obviously shortened since they're really 32 bits)? Just curious.

A:

I think you want Float.floatToIntBits().

