|
|
|
|
|
by johnnyanmac
1056 days ago
|
|
If I had to take a slightly snide guess: because these are low level tools, so there's a 90% chance that these parsers/prints are written in C, or ultimately depend on C implementations. As any C programmer would know, C loves to throw "undefined behavior" at any problem it doesn't bother to document. Which is a lot. That combined with almost zero package management for retrieving things that were solved decades ago means we keep coming into this issue, partially
because of the mindset of C programmers. |
|
If you are serious about your data format supporting round tripping you can and should specify the precise ASCII encoding of binary floats and the inverse. If that means implementations have to ship their own float formatter and parser than so be it - no one is tied to whatever comes with their libc, package manager or no package manager.