# GetMemblockFloat

## Description

Returns the float (4 byte) value at the given offset. The offset must be less than the size of the memblock. The first value is at offset 0. The offset must be a multiple of 4 as float values cannot be read across 4 byte boundaries. Float values are stored in IEEE 754 format so writing an float and then reading it back in bytes would return various components of the float format.

## Definition

float GetMemblockFloat( memID, offset )

float agk::GetMemblockFloat( UINT memID, UINT offset )

## Parameters

- memID - The ID of the memblock to check.
- offset - The offset from the start of the memblock of the value to return, between 0 and size.