3 ms·
> Don't blame the protocol, blame the language. Nothing prevents the use of fixed point for such numbers. I absolutely blame the protocol. Fixed point isn't wi
by toast0 6y ago
> Don't blame the protocol, blame the language. Nothing prevents the use of fixed point for such numbers.
I absolutely blame the protocol. Fixed point isn't widely available and used, but integers are. Someone below says protocol spec goes to three digits past the decimal. Using a constrained integer would have allowed the same range of values, but without the complexity of decimal numbers; that's a protocol mistake.
In addition to the ease of using floating point numbers to incorrectly represent decimals, there's also fun with formatting, comma vs period, number of digits to report, etc.