Re:What Every Computer Scientist Should Know About Floating-...
by dahfizz on Monday June 29, 2020 @08:21AM
(#23676891)
> the issue that there is no widespread lossless text exchange format for FP.
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.
(Lossless base10 encoding of 0.3 single precision would be like "10066330*2^-25"..not very readable).