private static void WriteFloat(double?value, ushort nbBits, string myFileName) { BinaryWriter writer = BCPTests.CreateBinaryFile(myFileName); SQLFloat sql = null; if (nbBits == 53) { sql = new SQLFloat(); } else { sql = new SQLFloat(nbBits); } sql.Write(writer, value); writer.Close(); }
private static void WriteFloat(double? value, ushort nbBits, string myFileName) { BinaryWriter writer = BCPTests.CreateBinaryFile(myFileName); SQLFloat sql = null; if (nbBits == 53) { sql = new SQLFloat(); } else { sql = new SQLFloat(nbBits); } sql.Write(writer, value); writer.Close(); }