@simon @jenniferplusplus …he binary ←→ string and dot product code is readily boilerplate, but getting it into a DB extn is potentially a hard thing to look up.
Then again, I’d be extremely suspicious of those string conversion functions. Stuff like this in C code sets off my alarm bells:
char *result = malloc(size * 12 + 2); // Max 10 digits per float + comma + space
(Note no further memory bounds check in the code for that buf! Eek)
Isn’t there a library for that job…?