Skip to content

RawData.float

JoeStrout edited this page Apr 29, 2026 · 2 revisions

get 32-bit float at the given byte offset

Parameters

Parameter Default Value Note
offset 0

Return value

Condition Return Value
(always) number

Notes

Example

import "RawData"
data = new RawData
data.resize 4
data.setFloat 0, 3.14
print data.float(0)   // approximately 3.14

Clone this wiki locally