def simxPackFloats(floatList):
    '''
    Please have a look at the function description/documentation in the V-REP user manual
    '''

    if sys.version_info[0] == 3:
        s=bytes()
        for i in range(len(floatList)):
            s=s+struct.pack('<f',floatList[i])
        s=bytearray(s)
    else:
        s=''
        for i in range(len(floatList)):
            s+=struct.pack('<f',floatList[i])
    return s
def simxPackFloats ( floatList ) : if sys . version_info [ 0 ] == 3 : s = bytes ( ) for i in range ( len ( floatList ) ) : s = s + struct . pack ( '<f' , floatList [ i ] ) s = bytearray ( s ) else : s = '' for i in range ( len ( floatList ) ) : s += struct . pack ( '<f' , floatList [ i ] ) return s
Please have a look at the function description/documentation in the V-REP user manual