binio-fputreal


Synopsis

(binio-fputreal <ostream> <real>|<list-of-reals>)

Description

Writes a single double IEEE floating point number (8 bytes in Intel order) or a list of those to an open output stream, opened with (binio-fopen fn "w"), (binio-fopen fn "rw") or (binio-fopen fn "a")

If the file is stored bitwise there is a non-portable (and elsewhere undocumented) function (binio-%double->2long) to convert the representation of a real number to 2 long integers to be able to store this number. Used for R13/14 DWG access.

Dependant on an external library: so far only binio.fas for ViLL or vlisp

Arguments

ostream: internal object representation of a binary file, opened for output.

real: either a single real number or a list of real numbers

Return Value

Currently unspecified

Side Effects

Writes data to an open stream and advances the file pointer by 8 bytes or multiples.

Module

(std-require-external 'BINIO)

Defined in BINIO