I'm well aware of that, having written at length about floating-point tricks, numerical issues, etc.
The issue here is you don't know what a library that formats a float does, and is the function is not specified clearly (as in C/C++), you have zero way of knowing what you will get.
Thus I said to do it yourself, using proper numerics.