Data Types

singleFloat

Supported By

Descriptors

Description

The singleFloat data type is a chunk type of binary that represents an IEEE-format single-precision floating point number at a particular offset in the parent binary.

Notes

The chunks of a binary are numbered starting at zero. This is one of the very few instances of zero-based indexing in XION, as most indexes start at 1.

Accessing a singleFloat chunk that is out of range returns zero. Modifying a singleFloat chunk that is out of range inserts as many zero bytes as necessary to insert data at the appropriate offset in the parent binary.

The endianness of the singleFloat is determined by the littleEndian global property.

The single-precision format has one sign bit, 8 exponent bits, and 23 mantissa bits.