Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on What Every Computer Scientist Should Know About Floating-Point Arithmetic (1991). Parent comment
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.
There are no comments on this comment yet.
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.