If you have to use strings as the intermediate representation (why?) Then printf("%x") and scanf("%x") is perfectly lossless and widespread.
The only thing that's lossy is converting floats to decimal point numbers, which is absolutely silly if it's just two machines communicating.
If you have to use strings as the intermediate representation (why?) Then printf("%x") and scanf("%x") is perfectly lossless and widespread.
The only thing that's lossy is converting floats to decimal point numbers, which is absolutely silly if it's just two machines communicating.