▲ | ForOldHack 2 days ago | |
Compromises. We had BCD for finance, binary for games, and floating point for math. I wrote a sample 'make change' using floating, BCD, and integer( normalizing by multiplying by 100). The integer ripped thru it, but surprisingly BCD kept up with FP, and with compiler optimizations, in certain edge cases and unit tests was significantly faster. You get surprising things with common place problems. | ||
▲ | cindyllm 2 days ago | parent [-] | |
[dead] |