Sign in Join
FPDoc Onlineexperiment

TStreamHelper.ReadSingle function

Member of TStreamHelperIn unit StreamEx

Read a single-precision floating point value from the stream.

Declaration

pascal
function ReadSingle: Single

Function result

The single-precision floating point type.

Description

ReadSingle reads a single-precision floating point value from the stream and returns the value. No endianness corrections are performed.

Errors

If the end of stream is reached before all necessary bytes can be read, an EReadError exception is raised.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.