Name
WriteFloat -- write a float to a file (V2.0)
Synopsis
WriteFloat(id, float[, width, le])
Function
This function writes a signed float to the file specified by id at the current file cursor position which you can modify by using the Seek() command. A float will use 8 bytes of disk space which is enough to store really big integers and floats with many decimal places.

Starting with Hollywood 6.0 there is an optional argument which allows you to specify the byte width of the floating point number. This can be 8 for a double-precision floating point number or 4 for a single-precision floating point number. By default, WriteFloat() writes double-precision floats.

By default, this function stores the value in big endian format (most significant byte first). Starting with Hollywood 6.0 you can use the optional argument le to explicitly request this function to use the little endian format instead.

Inputs
id
file to write to
float
float value to write to the file
width
optional: byte width of the float to write (defaults to 8) (V6.0)
le
optional: True to write bytes in little endian order, False for big endian order (defaults to False) (V6.0)

Show TOC