3 ms·
Aren't decimals better suited for financial applications? That's what I've used in the past in Java land (BigDecimal). Or are bignums and decimals the same thi
by coldtea 12y ago
Aren't decimals better suited for financial applications? That's what I've used in the past in Java land (BigDecimal).
Or are bignums and decimals the same thing? (not sure).
- dragonwriter 12y agoBignums are closely related to arbitrary precision decimals (aka BigDecimals; "decimal" without more is somewhat ambiguous since sometimes those are fixed size or decimal floating point.) Most financial applications deal with currencies each of which had a smallest indivisible unit in the application, which makes bignums most appropriate. But bigdecimals (or even arbitrary precision rationals) may be preferred in certain financial applications.