Skip to content

Latest commit

 

History

History
27 lines (15 loc) · 1021 Bytes

get-float.rst

File metadata and controls

27 lines (15 loc) · 1021 Bytes

GET_FLOAT

Syntax float = GET_FLOAT(#channel)
Location DJToolkit 1.16

Reads 6 bytes from the file and returns them as a floating point value.

BEWARE, if any errors occur, the value returned will be a negative QDOS error code. As GET_FLOAT does return negative values, it is difficult to determine whether that returned value is an error code or not. If the returned value is -10, for example, it could actually mean End Of File, this is about the only error code that can be (relatively) safely tested for.

EXAMPLE

fp = GET_FLOAT(#3)

CROSS-REFERENCE

get-byte, get-long, get-string, get-word.