Regular API function

simPackFloatTable / sim.packFloatTable

Description Packs a table of floating-point numbers into a string. See also sim.unpackFloatTable and the other packing/unpacking functions.
C/C++
synopsis
C/C++
parameters
C/C++
return value
Lua
synopsis
buffer data=sim.packFloatTable(float[] floatingNumbers,int startFloatIndex=0,int floatCount=0)
Lua
parameters
floatingNumbers: a table containing floating-point numbers. Non-numbers will be packed as zero values
startFloatIndex: the zero-based index from which on data should be packed. Can be omitted in which case 0 is used
floatCount: the amount of floats that should be packed. Can be omitted in which case 0 is used (which indicates that the maximum available floats should be packed from the indicated startFloatIndex)
Lua
return values
data: a string (values between 0 and 255) that contains packed floating-point numbers from the table
Python
synopsis
bytes data=sim.packFloatTable(list floatingNumbers,int startFloatIndex=0,int floatCount=0)

<