9 comments

[ 5.0 ms ] story [ 53.3 ms ] thread
Douglas Crockford talks about why he wants DEC 64 in this talk: http://vimeo.com/97419177 (jump to 41m:20s)
This has been brought up before and lots of issues were raised. Including multiple 0s and lack of normalization.
(comment deleted)
>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

At least with IEEE 754 you can cast as an INT and collate. Putting the exponent in the lowest bits prevents that for DEC64. What were they thinking?