public static byte[] toBytes(final float f) {
    // Encode it as int
    return Bytes.toBytes(Float.floatToRawIntBits(f));
  }
Return the float represented as byte[]
hbase-common/src/main/java/org/apache/hadoop/hbase/util/Bytes.java