I want to convert a 4-element byte array which I receive from socket connection to float. I searched on Google and tried several methods but couldn't help myself.
UPDATE The proper way to convert byte array to float is using this code:
ByteBuffer.wrap(array).getFloat();