# 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. For best performance the offset should be a multiple of 4 because reading float values that are not aligned to 4 byte boundaries incurs a hardware performance penalty. 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.