>By giving programmers a choice of number types, programmers are required to waste their time making choices that don’t matter. Even worse, making a bad choice can lead to a loss of accuracy or destructive bugs.
So why not use BigDecimal? It's too slow? So performance is a reasonable selection criterion? But not performance of million ints vs a million DEC64s? o_0
Crockford addresses that in passing at the end of the DEC64 page, claiming that IEEE 754's decimal floating point types were too inefficient to garner support.
9 comments
[ 5.0 ms ] story [ 53.3 ms ] threadSo why not use BigDecimal? It's too slow? So performance is a reasonable selection criterion? But not performance of million ints vs a million DEC64s? o_0