3 ms·
The numbers they gave were the hex representation e.g. `(Math.tanh(0.1)).toString(16)` which allows compact binary comparison. The arbitrary bias you'd find is
by zamadatix 7y ago
The numbers they gave were the hex representation e.g. `(Math.tanh(0.1)).toString(16)` which allows compact binary comparison.
The arbitrary bias you'd find is probably less than you'd find by rounding (truncating or otherwise).
The problem with truncation to make things repeatable cross-platform is it assumes "cross-platform" to be "any platform where the Nth to last digit is correct" when the standard explicitly makes no such guarantee about the Nth to last digit.