byte[] bytes = new byte[4]; int l = Float.floatToIntBits(d); for (int i = 0; i < bytes.length; i++) { bytes[i] = Integer.valueOf(l).byteValue(); l = l >> 8; return bytes;
if (f >= Byte.MIN_VALUE && f <= Byte.MAX_VALUE) { return (byte) f; return null;