public static byte[] floatToBytes(float f){
  return intToBytes(Float.floatToIntBits(f));
}

public static byte [ ] floatToBytes ( float f ) { return intToBytes ( Float . floatToIntBits ( f ) ) ; }
converts primitive float to byte array .
