Re:What Every Computer Scientist Should Know About Floating-...
by ColinWright on Monday June 29, 2020 @07:11AM
(#23676421)
> I do not understand why would you ever round trip floats through text.
There are many, many occasions in the real world where this is necessary ... I've dealt with it multiple times. When done carefully and with appropriate knowledge of the underlying systems it's not a problem.
But just because you've never done, that doesn't mean it's the wrong thing to be doing.
> if you really want to do that then you use a hexadecimal float representation
There are combinations of systems where that won't work.
There are many, many occasions in the real world where this is necessary ... I've dealt with it multiple times. When done carefully and with appropriate knowledge of the underlying systems it's not a problem.
But just because you've never done, that doesn't mean it's the wrong thing to be doing.
> if you really want to do that then you use a hexadecimal float representation
There are combinations of systems where that won't work.