I am using MySQL C API. Now I have some Double Typed data in C, and I want to insert them to a database. All I know now is to use mysql_real_query() with a statement string to do this. I am worrying about losing precision, since the process above involves double to string then to double. Is there a way to avoid this? Like sending double binary data directly to MySQL? I assume MySQL implements double the same as C does.
For example, let s say I want to find a particular word or number in a file. The contents are in sorted order (obviously). Since I want to run a binary search on the file, it seems like a real waste ...