Memory.GetFloat

number Memory.GetFloat ( 

number  Memory )

Description

Reads a float (4 bytes) from the specified memory address. Range: unlimited.

Parameters

Memory

(number) Address of Memory.

Returns

(number) Return Float that reads from memory.

ResultVariable

When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.

Example

mem = Memory.Allocate(1024) Memory.PutFloat(mem, 1024.56) Dialog.Message("", Memory.GetFloat(mem)) -- Print 1024.5600585938 Memory.Free(mem)

See also:  Related Actions

Сайт управляется системой uCoz