Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"For accounting you should only ever use arbitrary precision math library"

I'm a bit surprised by this advice. I thought the common wisdom was to use a decimal type like BigDecimal in Java.



BigDecimal is an arbitrary precision type so using BigDecimal is how you would follow said advice in Java.


BitInteger and BigDecimal are arbitrary precision types in Java




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: