def write_float(self, value, fmt='%.16g', sep='', full_record=False):
        if self.binary:
            if full_record and self.unformatted:
                self.write_recordmark(self.reclen_floats(1))

            fmt = '>' if self.big_endian else '<'
            fmt += 'f' if self.single_precision else 'd'
            self.file.write(struct.pack(fmt, value))

            if full_record and self.unformatted:
                self.write_recordmark(self.reclen_floats(1))
        else:
            self.file.write(fmt % value)
            if full_record:
                self.file.write('\n')
            elif sep:
                self.file.write(sep)
Writes a float.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.util/src/openmdao/util/stream.py/Stream.write_float