float f = 1.0;
byte b;

b = (byte)(f & 0xff);