public static void writeFloat(float value,BinaryWriter writer) { byte[] bytes = BitConverter.GetBytes(value); writer.Write(bytes); }