latitude = bytes([data[12],data[11],data[10],data[9]])
longitude = bytes([data[16],data[15],data[14],data[13]])
intLat = struct.unpack('!f',latitude)
intLong = struct.unpack('!f',longitude)
print(intLat)
print(intLong)
this is the coding printed.
(100.47630310058594,)
(5.136366844177246,)
how to remove the ( ) and , ?
because i just want the floating to store in database, with out () and ,
You have to reference the first element of the tuple: