Regular API function

simUnpackFloats

Description Unpacks a string (or part of it) into a table of floating-point numbers. See also simPackFloats and the other packing/unpacking functions.
C synopsis -
C parameters
-
C return value
-
Lua synopsis table floatingNumbers=simUnpackFloats(string data,number startFloatIndex=0,number floatCount=0,number additionalCharOffset=0)
Lua parameters
data: a string (values between 0 and 255) that contains packed floating-point numbers
startFloatIndex: the zero-based index from which on data should be unpacked (from data[4*startFloatIndex+1+additionalCharOffset]). Can be omitted in which case 0 is used
floatCount: the amount of floats that should be unpacked. Can be omitted in which case 0 is used (which indicates that the maximum of floats should be unpacked from the indicated startFloatIndex)
additionalCharOffset: a char offset that will be added before reading the floats. Can be omitted, in which case 0 is used.
Lua return values
floatingNumbers: a table containing unpacked floating-point numbers if operation was successful, nil otherwise

All regular API functions on one page